Validate linked issue types

I am looking for a way to ensure only the proper link types are used between issues types/projects in JIRA. For example, a product defect blocks a client bug, not the other way around. I have not been able to find a way to add rules to limit the user's options. Any suggestions on how to accomplish this?

2 answers

This widget could not be displayed.

I'd have said you "product defect blocks client bug" and "client bug blocks product defect" are both perfectly valid cases, but that's just picking at the edges of your description.  In some cases, you can create nonsense and/or unhelpful links between issues.

There is no validation built into JIRA, you'll need to find or write code to do it.  As usual, I'd reach for the script-runner and create a "validator" that would block progression in the workflow if someone adds an inappropriate link.

However, a validator won't really apply to the linking facility in JIRA, or edits (unless you're on a reasonably recent version), so your users will be able to add the links no matter what.  With validators, they won't eb able to progress the issue (can't resolve/close it while it has broken links etc), and you can get quite creative by checking both ends, so they're forced to update links.

I'm not aware of any addon that does link validation like this in full (there was something for version 3 of Jira, but it failed a lot of testing I did on it) 

Thank you Nic.  Yes, outside of our process, it's perfectly valid that a client bug can block a product defect.  However, we've implemented policy to exclude other scenarios.  I am just trying to find a way to enforce that policy in JIRA.

We are running JIRA v6.3.15.  Is there a way that I can create a workflow transition (eg. New to New) with a transition screen showing only the issue links.  Then use a validation to ensure the links adhere to policy?  If so, is there any guidance on how to implement this?  I'm still a scripting novice.

Yes, you should be able to create a screen with (just) the field "Linked issues" on it. The validation can kick in on the "validators" part of the workflow (although you'll want to do that on other workflow actions too)

This widget could not be displayed.

Hi Scott,

this is reported on Atlassian JIRA:

 https://jira.atlassian.com/browse/JRA-9634

It seems that this issue is not going to be delivered soon. You can try Extended Schemes for JIRA to fulfill your needs. It covers not only Schemes for Link Types but for Priorities and Resolutions too.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

169 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you