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

Matúš Klaudíny Oct 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 [cPrime] Community Leader Oct 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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Jira

Try Jira Cloud for Outlook: Organize your work without leaving your inbox

Hi Atlassian community, My name is Max and I work on the product integration team at Atlassian. I am pleased to announce the early access program for the Jira Cloud add-in for Outlook. This add-in...

2,181 views 6 15
Read article

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