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

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

0 votes
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: https://marketplace.atlassian.com/apps/1215311/stagil-assets-advanced-links?hosting=server&tab=overview

Best regards,
Daniel
STAGIL

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

Share your Confluence Cloud experience for a chance to win $500!

Take our 5-minute survey to win a $500 Visa gift card! Are you currently using Confluence Cloud? We want to hear from you! Fill out this quick survey about your Confluence Cloud experience so we ...

238 views 5 13
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