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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.