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

Can ScriptRunner limit the possible values of issue link types?

Jochen Betz June 17, 2024

Objective: Provide the possibility to "link" an issue of another (software) project to a issue in a JSM project where the only possible link relationship is "causes" (or is caused by depending on your point of view). Users currently have plenty of choice and unfortunately make use of them because they also somehow make sense. But the process definition is clear and automation depends on it, only one relationship is allowed. As far as I know this selection cannot be limited by Jira itself.

Thus the question: Can this be achieved with ScriptRunner?

Alternatively: Does somebody know about any means to achieve this?


Additionally 1: Can ScriptRunner (or Jira iteslf) limit the select of projects an issue can be linked from?
Additionally 2: Can ScriptRunner provide a single button to add such a feature and allow only selection/creation of a new issue in another (limited list) project?

1 answer

0 votes
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.
June 18, 2024

Hi Jochen,

I can confirm you cannot limit the values in the Issue Link Field in Jira Cloud as Atlassian does not support this field in the UI Modifications API which behaviours use.

However, you could write a workflow validator to allow issues to be created or be transitioned only when a certain link type is selected.

Workflow validators use the Jira Expression Framework in Jira cloud and we have some examples of these here and here that you can use to help see how to write a validator to achieve your requirement.

Regards,

Kristian

Suggest an answer

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

Atlassian Community Events