Hello,
For one of the transitions in the workflow in which the current user can assign the issue to someone else - there is a screen with the assignee field related to this transition, I want to pop up alert in case the current user DID NOT changed the assignee.
I don't want to block or fail the transition - just to notify him: Please note, you didn't assigned to issue to someone else.
I have both JMWE and scriptrunner addons (trail versions) -
Will appreciate solution for both of them or without them.
Regards,
Yaron
Hi Yazon
Thank you for your question.
I can confirm that with ScriptRunner for Jira Cloud that we provide the Workflow Validators feature as documented here which allow you to define a condition that must be met in order for a transition to be allowed and you will be able to use this feature to mandate the assignee must be changed in order for the issue to be allowed to be transitioned.
Workflow Validators are defined using the Jira Expression Framework as documented in the Atlassian API documentation page located here or in the documentation page located here which explains how to add in a new validator to your workflow.
I can also confirm that when viewing the Jira Expression Framework API documentation page linked above you can navigate to the Context variables section which shows what variables are provided by this framework that can be used to create the expression.
If you then click on one of the variables it will show all the properties that can be called on the variable for the expression such as for the issue variable as shown here and you will be able to check this to see if Atlassian provides a variable that can be checked against to help create the validator which you require.
I am unable to provide an exact expression to achieve your requirement, but you can use the resources shared above as a reference guide to help create that validator expression that you require.
I hope this information helps.
Regards,
Kristian
Hi Kristian
This thread partly answers the same query I have but I am using Conditions as I'm not skilled enough to write Java Compliant Expression. Is there any way to add a user alert when the workflow transition condition is not met? This is my current Condition setup:
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.