I would like to take the value of ‘Version’ field and some other custom fields from ‘Add Result’ window and display them in ‘Push Defect’ window in ‘Environment’ field (once user presses the “Push” link in ‘Add Result’ window).
How can I implement it in a script?
I was in the same situation couple of years ago. And you could take these guidelines if you are using Jira for your defect management tool.
Here’s how I got to “push” other field values to Jira when clicking the Push hyperlink in TestRail if the test scenario execution failed…
- Click the ADMINISTRATION link of top of TestRail page
- Scroll down and click the Integration > Manage integration link
- In the next page, there is a window that says "Please configure your JIRA connection below
- Under the [push.field] section, add the fields you need to push by typing the exact fieldname and set it to “on”. As an example I have these entries:
I hope this helps.