Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

TestRail Jira Integration

Alex Dhesi September 25, 2020

Hi,

I am seeking advice on TestRail to Jira integration. I have the basic functionality working.

My issues is. I have a user story created within Jira. I have created a test case within TestRail which references Jira user story. I create a pushed defect from the test case which has the user story jira number in the reference field.

When I created the pushed defect within TestRail the defect is not linked to the user story or the jira defect.

I need for the defect to be linked to the user story and also when I select the user story in Jira for it to see the defect as a blocker. 

4 answers

2 votes
Stevan Mandić
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 15, 2024 edited

The solution:

  1. Create Custom field in Jira (for instance: Testrail -Blocked issue). Custom field type should be text field (single line).
  2. Add your field to Story defect Screen (or Create screen if you have one)
  3. In your browser search for: YourJiraInstance/rest/api/latest/field
  4. Find your custom field Id - "customfield_XXXXX"
  5. Go to Testrail/Administration/Integration/Defects
  6. Edit your defect plugin (push.fields section as following:Screenshot 2024-05-15 at 12.26.42.png  (turn off linked type and links, add your custom field and turn it on)
  7. At the bottom of your defect plugin configuration add: Screenshot 2024-05-15 at 12.43.55.png (choose label name which suits you the best)
  8. Create jira automation:Screenshot 2024-05-15 at 12.24.28.png
  9. In testrail push defect window you will now have the field: Blocked issue.
  10. Just put your reference (story Id) - ABC-12345
  11. When you push your defect to Jira it will be linked to your story
0 votes
Shamala Balasubramanian
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 23, 2022

Hi - I am also not able to link the Push defect to a user story in JIRA. Has anyone been able to do this? Thanks

0 votes
Satya
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 6, 2021 edited

@Shanu Mandot Hi, we have the same issue and I was looking for an answer.

Is there a better way of TestRail integration with Jira? Can we see associated bug under linked issues for User story and vice versa?

0 votes
Shanu Mandot October 28, 2020

@Alex Dhesi Thanks for your post. Are you still facing this issue or you were able to proceed further ?

Looking forward to your findings !

Suggest an answer

Log in or Sign up to answer