Forums

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

How to get previous value from Version Updated Trigger

Kiyotoshi Ichikawa
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 8, 2023

We have setup automation to post a Microsoft Teams message and create a Confluence page when a Version is Created, Released, and delete the Confluence page when Unreleased. We would like to also keep the Confluence pages created by automation in sync with the Jira Version it corresponds to by using the Version Updated trigger but we can't find a way to get the previous values vs the new values.

I have dug through all the community posts and documentation I could find, without finding any answers. Is there a way to accomplish this?

1 answer

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.
December 8, 2023

Hi @Kiyotoshi Ichikawa -- Welcome to the Atlassian Community!

First thing, I am using Jira Cloud and so my suggestions are based on what I know about automation rules, and not about Jira Server or Data Center versions.  With that out of the way...

I have not found any changelog information available with the Version related triggers.

A possible work-around, that I have not tried, is to use the information in the site audit records.  So perhaps check from site administration to learn if audit records contain version information.  If they do, you could try calling the REST API functions with the Send Web Request action to get the audit records, filtered to get only version-related ones.

Another possibility is to ask contact Atlassian Support to learn what they suggest: https://support.atlassian.com/contact/#/

Kind regards,
Bill

Kiyotoshi Ichikawa
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 11, 2023

Would pulling information from the audit records be using a Web Request action to hit the Jira API itself?

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.
December 11, 2023

Yes, that is correct.  There is a Send Web Request action which may call the REST API functions.

Again, I suggest first checking the audit log to observe if it contains the version update information.  Then try calling the REST API function from a browser to see if the data is present.  That will save time before trying to get the rule to work.

Here is a how-to article for calling a REST API function from a rule using that action:

https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828

Suggest an answer

Log in or Sign up to answer