Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Automation for Jira support to set Status from variable

Use case: set status back to previous value if some values are not met

I am able to get the previous issue by using the When: value changes (Status)

And able to capture it with {{fieldChange.from}} / {{fieldChange.fromName}} and store in a variable

What I am not able to do is transition the new state to the value in the variable.

"Transition the issue to" doesn't support it, and "Edit issue" does not support 'Status' 

1 answer

0 votes

This is because status is not a field and you do not edit status.

Status shows you where the issue is in the workflow.  You change it by triggering transitions, not editing.

To do what you're looking at here, you will need

  • A workflow that has a transition from the current status to the status you want to go to
  • Something that can work out which transition you need to perform
  • An action that pushes the transition

Automation cannot directly do the second one, but I believe you can get there with a complex stack of "if"s.  You'll need an automation for each possible "back" transition, with an "if previous status = stored status" to say you only want to do it if the previous status was something

Suggest an answer

Log in or Sign up to answer

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