Automation for Jira support to set Status from variable

Raffaele Litto December 2, 2020

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
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 2, 2020

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
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events