'Who made the last transition' Condition/Validation

Matúš Klaudíny October 22, 2018

Hello, 

Is there a specific way how to extract information about the last transition made (to status) and who was responsible for that action? I would like to create a restriction type of condition for next transition (from status) that would be based only on people that did not transition the issue previously. 

1 answer

1 vote
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 22, 2018

Hello,

You would need to store this info in a custom user field and then analyze this custom user field in a workflow condition. But you would need a scripting add-on to acomplish this logic.

You could use, for example, the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You could create a post function :

#{mulit user field} = arrayAddElement(#{mulit user field} , currentUser());

This post function would add the current user, who executes this transition, to the custom user field.

Then you could write a workflow condition like this:

if (arrayElementExists(#{mulit user field} , currentUser())) {
  return false;
}
return true;

this condition would hide the transtion button on the issue view, if the current user exists in the custom user field.

You coud read more info about post functions and conditions here:

https://confluence.cprime.io/display/JJUPIN/Customizing+workflows

Suggest an answer

Log in or Sign up to answer