Forums

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

Smart Value Previous Status

Marcelo Ignacio Cid Abud
Contributor
January 16, 2023

hi I try to create one automation that permit copy the previous status (the a issue ) in the cascading option the a custom field (previous status)

1 answer

2 votes
Trudy Claspill
Community Champion
January 16, 2023

Hello @Marcelo Ignacio Cid Abud 

Please show us the Automation Rule you have created so far and tell us which part is not working the way you want it to.

Marcelo Ignacio Cid Abud
Contributor
January 17, 2023

Hi @Trudy Claspill 

The Idea is:

 

ajsd.PNG

That when an issue goes to the dismissed state, the field in which state the discard occurred is filled automatically with the previous state (to which it was discarded), this field is a cascade field.

 

I'm looking for something like this {{issue.previousstatus.name}}

Trudy Claspill
Community Champion
January 17, 2023

Because the trigger for your rule is Issue Transitioned you can use this smart value to get the previous Status from which the issue was transitioned.

{{#changelog.status}}{{fromString}}{{/}}

That will give you the previous Status value as a string. For more information refer to:

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

I have not worked out how you would use that value to set a Cascading Select field yet, but it would likely involve using the Advanced Edit option and JSON as discussed here:

https://support.atlassian.com/cloud-automation/docs/advanced-field-editing-using-json/#Cascading-select-custom-field

What are the Status values in your workflow? And what are the values available in the Cascading Select field?

Melissa Nielsen January 31, 2025

Thanks, this worked for me!

Trudy Claspill
Community Champion
January 31, 2025

You're welcome!

If my responses helped you address your requirement please consider clicking on the Accept Answer button to mark your Question as Solved.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events