How to additional parameter for AutoCreateNewIssueIfTestCaseFails in JiraReporter

Ask general questions here.
venugopal
Posts: 1
Joined: Fri Aug 03, 2018 10:16 am

How to additional parameter for AutoCreateNewIssueIfTestCaseFails in JiraReporter

Post by venugopal » Fri Aug 03, 2018 10:35 am

Hi Team,

I'm using Ranorex version 6.1.1(Licensed) in windows 7 machine. I have added JiraReporter libraries to my project to auto create an issue upon any test case failure. My Jira project requires many mandatory fields, but AutoCreateNewIssueIfTestCaseFails module only few parameters such as Description, Issue type, labels, Project key and Summary.

1. How to pass additional parameters to Jira from Ranorex?
2. Do we have any mode or module to create an issue with additional fields?

Thanks
Venugopal V
Attachments
Jira_Error.png
Screenshot for issue in creating Jira
Jira_Error.png (33.69 KiB) Viewed 162 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: How to additional parameter for AutoCreateNewIssueIfTestCaseFails in JiraReporter

Post by Support Team » Tue Aug 07, 2018 6:24 am

Hi Venugopal,

Thank you for reaching out to us!

Not only does the Jira reporter come with lots of great modules to use, but it also comes with lots of user methods to chose from. One of these methods is called 'addCustomFieldValue' and just like the name implies you can use this to populate custom fields. There are several ways to implement these methods but here is a simple example:
  • jira1.png
    jira1.png (7.54 KiB) Viewed 140 times

Inside the recording module 'addMyCustomJiraFields' I have the 'addCustomFieldValue' method from the user code library:
  • jira2.png
    jira2.png (50.41 KiB) Viewed 140 times

If you are not familiar with the user code library, try the below:
  • Within a recording module -> Add new action -> User code -> Select from library
If needed, you may learn more about our user code section here: https://www.ranorex.com/help/latest/ran ... e-library/

I hope this helps!

Regards,

Jon
.
Image