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

3 votes
Answer accepted
Kristian Walker _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 yesterday at 9:51 PM

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events