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.

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
Community showcase
Published in Jira Service Management

Coming Soon: Insight Changing to Assets

The 2020 acquisition of Mindville added powerful asset and configuration management capabilities to Jira Service Management in the form of Insight. Following the completion of that integration, custo...

44 views 0 1
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you