Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

I want to allow only a certain issue type on "Linked Issue"

Hi ,
I am quite new to script runner and behavior plugin. I want to achieve below scenario

When I am creating User Story, then I want to be able to select only "Task" issues of that project in the "Linked Issue" , "Issue" field.

for example, we see only epics in the epic link, so I want to achieve something similar to that. But in this case for one standard issue type i want to see another standard issue type.

2 answers

1 accepted

1 vote
Answer accepted

I don't think that there is any way with scriptrunner to control the source of the built-in linked issue field or the link issue dialog (used to add a link after the issue creation).

The simplest would be to use the Scriptrunner Behaviour functionality (or workflow) to "validate" the linked issue selected during the creation and return an error if it is not a Task.

The other option is to create an Issue Picker scripted field to use during the creation of the issue. If you need that issue to be listed specifically as a linked issue, you could use a workflow function to then create the issue link based on the issue picker field.

0 votes

It sounds like you want to display the Tasks of a Story in a separate field like the Epic Link and restrict this field to only Tasks.

This is possible with the Issue Picker field in ScriptRunner, so I would support Peter-Dave's answer here.

We also have an add-on available that not only lets you create issue picker fields but link the issues with a real relation where you can define the relation, select what kind of issues (even based on certain field values) and what amount of these issues can be linked and you can also see the linked Story when you are viewing the Tasks which is not possible with ScriptRunner's issue picker field. Here is a link to the app. Give it a try if you want:

Best regards,

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events