restrict create issue from issue linked?

I want to restrict the issue creation from Issue linked option. Because I don't want the linking between the same issue type

for example. I don't want an issue linking from Bug to Bug. 


it is possible?

thanks 

1 answer

You can use "Condition / Validation on issue links" or "Boolean condition / validation with math, date-time or text-string terms" provided by JIRA Workflow Toolbox to implement any restriction you can imagine on issue links. These restrictions hide a transition (conditions), or prevents execution of a transition showing a custom message (validation), when the restriction on issue links is not meet.

Some examples of boolean expressions are:

1) Preventing any issue link to "Bug" issues:

count(filterByIssueType(linkedIssues(), "Bug")) = 0


2) Preventing any "blocks" and "is cloned by" issue link to "Bug" and "Story" issues:

count(filterByIssueType(linkedIssues("blocks, is cloned by"), "Bug, Story")) = 0

 

3) Allow "is blocked by" and "is duplicated by" issue links only to "Bug", "Improvement" and "New Feature" issues:

count(linkedIssues("is blocked by, is duplicated by")) = count(filterByIssueType(linkedIssues("is blocked by, is duplicated by"), "Bug, Improvemente, New Feature"))

 

4) Restrict issue link types with "Bug", "Improvement" and "New Feature" issues only to "is blocked by" and "is duplicated by":

count(filterByIssueType(linkedIssues(), "Bug, Improvemente, New Feature")) = count(filterByIssueType(linkedIssues("is blocked by, is duplicated by"), "Bug, Improvemente, New Feature"))

Let me know your specific needs, and I will be happy to give you the exact expression you need.

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 yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

30 views 0 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