Forums

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

Rename a version when another version is renamed using jira automation

Thomas Huber July 23, 2023

I want to set up an automation rule in Jira which does the following:

 

Trigger: Version in Project 1 is renamed from Version_Upcoming to Version_1

Action: Rename the version Version_Upcoming in Project 2 from Version_Upcoming to Version_1

The trigger seems straightforward. Where I am struggeling is accessing the required data in the action(log action). In particular I need:

* The old version name Version_Upcoming which wa renamed.

I tried finding the correct smart value using the log action... with no success.

Also, once the tirgger works, the next step is renaming the version in Project 2. Is there an action which does this?

If this is not possible what other ways are ther to synchronize versions? I am aware that AddOns exists but would rather do it myself.

 

 

3 answers

0 votes
Thomas Huber August 4, 2023

Any other suggestions?

0 votes
Thomas Huber July 24, 2023

Ok thanks for that. I was not aware that there is a Send Web Request action.

So now I only need to get the old version name from somewhere.

0 votes
Trudy Claspill
Community Champion
July 24, 2023

Hello @Thomas Huber 

I have not found an answer to your first question about accessing the original value of a Version field when the Version Updated trigger is used.

 

Regarding your second question, there is no Automation Action specifically for renaming a version. To do that you would need to use the Send Web Request action and the REST API for Project Versions:

https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-project-versions/#api-rest-api-3-version-id-put

Suggest an answer

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

Atlassian Community Events