Forums

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

How get last change status from smart value ?

Alex
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.
January 21, 2024

Hi everyone! 

Tell me please how get value  last change status in issue (date and time) 

with using "Smart value" ?

Thank you any help!

Best regards Alex.

3 answers

0 votes
Bill Sheboy
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.
January 21, 2024

Hi @Alex 

What problem are you trying to solve?  That is, why do this?  Knowing that may help the community to offer better suggestions.  Thanks!

Until we know that...

The information about status transitions is stored in the changelog, and that is not easily accessible by automation rules.  As @Hana Kučerová suggests, the rule could capture the date / time of a change in a custom field when the status changes.

Another approach, if your workflow is quite simple (e.g., To Do > In Progress > Done) you could try using the statusCategoryChangedDate as that would reflect the last time the status category changed.

Kind regards,
Bill

0 votes
Hana Kučerová
Community Champion
January 21, 2024

Hi @Alex ,

maybe you can try to get it using {{changelog.status}}, see here for more info: 

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

Alex
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.
January 21, 2024

@Hana Kučerová Hi! Output :

ChangeItemBean

{field='status', fieldType='jira', from='11301', fromString='Backlog', to='1', toString='Open'}
Hana Kučerová
Community Champion
January 21, 2024

Ok, it looks like the date is not available, only other params.

I’ve searched more on this topic and it is complicated.

The easiest solution probably would be to create a new custom field and store the datetime there each time the issue is transitioned using automation (and then get the value from there).

Here are some other tips about this topic: https://community.atlassian.com/t5/Jira-Software-questions/Smart-value-for-the-date-the-issue-transitioned-to-quot-In/qaq-p/1635871

0 votes
Carmen January 21, 2024

Hi @Alex ,

try: {{issue.updated.jiradate}}

Best regards

Suggest an answer

Log in or Sign up to answer