It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

'Who made the last transition' Condition/Validation

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

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
Community showcase
Posted in Portfolio for Jira

Program managers, we need your help! We want to learn about how you plan work for a team of teams

Hi community members, My name is Erika and I’m a product manager at Atlassian. We’re currently investigating how teams are planning work at the program level. We understand that every team in a tea...

145 views 0 5
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you