Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Go back to previous priority

Fatima AALLA
Contributor
December 11, 2023

Hello, I implemented an automation rule, and I need to go back to previous priority, when an other field changes , I tried this {{#changelog.priority}}{{fromString}}  but it doesn't work Any suggestions please? 

1 answer

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Champion
December 11, 2023

Hello @Fatima AALLA 

Can you please share with us your complete automation rule?

As per the documentation you cannot access information about the Priority field through the changelog smart value:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--changelog--

If you need to revert the Priority field to the value it had prior to its last change, and if that change happened prior to the change of the "other field" you are using as your trigger, then you will need to keep track of that previous Priority value in in a separate field that you can reference later in an automation rule.

Adria Alonso
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.
November 28, 2024

Hello Trudy,

could you please elaborate on how to revert the previous priority state?

Trudy Claspill
Community Champion
November 28, 2024

Hello @Adria Alonso 

You would need to:

  1. Create a custom field for storing the last value assigned to the priority field.
  2. Create an Automation Rule triggered by a change of the Priority field.
  3. In that Automation Rule use an Edit action to set that custom field to the previous value of the Priority field using the Smart value {{fieldChange}} properties. You can find details about that smart value on this page:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/

Like Adria Alonso likes this
Adria Alonso
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.
December 29, 2024

Many Thanks Trudy, workd like a charm!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events