Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to pop up alert while\after transition for not changing the assignee

Yaron Azar
Contributor
February 22, 2021

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

1 answer

1 accepted

0 votes
Answer accepted
Kristian Walker _Adaptavist_
Community Champion
February 22, 2021

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

Tafara Mugwangi April 13, 2021

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:

Workflow Condition - Add Alert.jpg

Suggest an answer

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

Atlassian Community Events