Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Make "Linked Issues" mandatory via Script runner behaviour

Yogesh Ranjitkar March 27, 2025 edited

Hi All,

I am trying to make the Linked Issues field mandatory via Jira Scriptrunner Behaviour in JIra cloud. I tried below code but it didn't help.

getFieldById("issuelinks").setRequired(true)

I want to have (*) in the text. Can anyone please help?

FYI, I don't want to do it via Field Configuration and is a need to implement it via Behaviour.

 

1 answer

1 accepted

4 votes
Answer accepted
Kristian Walker _Adaptavist_
Community Champion
March 28, 2025 edited

Hi Yogesh,

I can confirm that behaviours in Jira Cloud do not support the issue link field, so you will not be able to achieve your requirement of making it mandatory.

The reason for this is that Behaviour is built using the UI modification API provided by Atlassian and this does not support the issue link field meaning it cant be supported in Behaviours.

You can see all field behaviour supports on the documentation page here for reference.

One alternative may be to look to a workflow validator to ensure a link is specified when the issue is created and we have an example of how this in the page here.

I hope this information helps.

Regards,

Kristian

Yogesh Ranjitkar March 30, 2025

Hi @Kristian Walker _Adaptavist_  Thanks for the reply. I already have the restriction placed via transition validators. However, I wanted to have that (*) on screen implemented so that users knows its mandatory from its look. But it seems like I will have to use the Field Configuration to achieve it. 

Anyways, thanks for your response. That helped.

Kristian Walker _Adaptavist_
Community Champion
April 1, 2025

Hi Yogesh,

The only way to have the asterisk would be via a behaviour, which will not be possible until Atlassian supports this via the UI Modifications API.

Regards,

Kristian

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
atlassian, confluence, loom, atlassian intelligence, ai notes, ai-powered meeting notes, atlassian community events, ace, confluence ai, loom ai integration, ai note-taking, atlassian ai features, team '25, atlassian live learning, confluence automation

Unlock AI-powered meeting notes: Join our live learning session! 📹

Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.

Register today!
AUG Leaders

Atlassian Community Events