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.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.