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
4,359,836
Community Members
 
Community Events
168
Community Groups

Require Linked issue with ScriptRunner

Hi,

My goal is to require the user to insert a value into the issue linked issue.

On Jira, I can only to make the 'Linked Issues' field to be required, but not the issue it self.

image.pngI think that the way to do it is to add validator using the ScriptRuuner, but I don't success to write that tiny script.

Thanks.

1 answer

1 accepted

0 votes
Answer accepted

You could use Behaviours to make both the fields required. Use this script in the initiliaser section of the behaviour:

getFieldById("issuelinks").setRequired(true)

Youre welcome! Thats what ScriptRunner does :)

Make sure you go back to Jira and change the field back to optional so it doesnt conflict with the behaviour.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Online AMA this week: Your project management questions answered by Jira Design Lead James Rotanson

We know that great teams require amazing project management chops. It's no surprise that great teams who use Jira have strong project managers, effective workflows, and secrets that bring planning ...

171 views 1 6
Read article

Atlassian Community Events