Link type restriction through the field Linked Issues

Hey everybody,

do you know a possibility to restrict the link types depending on issue types? 

Use Case: Type "defect" should allow only the link type "dublicate" and type "action" should allow only the link type "blocked".

Do you have any ideas how to solve this problem?

Kind Regards

Elke

 

1 answer

1 accepted

1 vote

Code.

Links don't have any restriction by type in JIRA, so you'll need to write something to add the functionality.  The most simple implementation would be a validator on workflows to stop progress if inappropriate links exist on an issue, but that won't stop people using the links.

It's actually quite a complex requirement, because it's not as simple as "can only allow duplicate on defects" - you have to do it in reverse (i.e. any other issue type trying to link to a defect would have to check the target issue type and block it), and there are several places that you can link issues, not just one.  So that's quite a lot of code, some of which I suspect you'd have to do in the core of JIRA (because linking is so fundamental, I don't think it's a simple module to hack)

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published 6 hours ago in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

84 views 4 4
Read article

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