Forums

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

Automation for Cloning (copying) a fixversion from one project to another?

Misty Meyers May 15, 2023

Is it possible to "clone" or copy a fixVersion (release) from one project to another?  My team has multiple projects for Development, but we maintain a single Jira project for all the testing.  I was hoping there was a way, that when a new fixVersion (release) is added to one, the same would be "copied" and created to the Test project.  We don't need all the related work, just the mere fixVersion.

example:

Project A creates anew release: ios release xyz, then automation creates on the QA Project a release with that same name

I'm thinking it's not possible, but hoping!!

Thank you!

 

2 answers

2 accepted

1 vote
Answer accepted
Walter Buggenhout
Community Champion
May 15, 2023

Hi @Misty Meyers,

I actually found a slight hack to make this work. My automation rule looks like this:

Screenshot 2023-05-15 at 20.49.02.png

The hack relates to the for JQL branch that is needed with the Version created trigger of the rule. In order to use the version smart values to create a new version, you need to provide a list of issues in order to proceed.

There is an issues in version branch available, but on a version created trigger there are no issues. So I used the JQL branch to enable actions, but since you want to create the version only once, you should ensure you only return 1 issue. Hence, I defined a filter that only returns one issue (always). If your JQL branch returns more issues, you'll notice some errors in your audit log as the rule would try to create several versions with the same name.

Hope this helps! 

Misty Meyers May 15, 2023

Thank you Walter!

Do I have this correct; when a version is made the version is also made on the  Kanban sample project. Therefore, this automation rule would need to be added to each of the Jira Projects?


Walter Buggenhout
Community Champion
May 15, 2023

Hi @Misty Meyers, you can make the automation rule a global rule. In the configuration of the rule, you can specify which projects it applies to, but indeed, given your scenario it must be enabled for all projects where you want to detect the (potential) creation of new versions.

Like Misty Meyers likes this
Misty Meyers May 15, 2023

Thank you again!

I'll give this a little test! :-)

Kelly Arrey
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.
May 16, 2023

Here's my rule. I was able to get this working without your hack Walter.

2023-05-16_12h52_12.png

Like # people like this
Misty Meyers June 7, 2023

Hi Kelly,
Question on your magic above. I wasn't following the purpose of the "And Create Version." I understood the first as when project ENG adds a release creates that same release on project DOC. What am I missing in my understanding?
Thank you!!

Kelly Arrey
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.
June 7, 2023

Hi Misty, I have 3 "Create Version" clauses because in our use case, I'm propagating the Release Name from ENG to 3 other projects, i.e., DOC, PM, and REL.

HTH,

Kel

Like Misty Meyers likes this
Anette Unger February 8, 2024

global rule fixversion.jpg

 

I can choose only ONE Project. It is the same like I create the rule (globale). How it is possible choose other Projects like you (3)?

Kelly Arrey
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.
February 8, 2024

Hi @Anette Unger, as you say, we can only choose one project at a time in the "Create Version" action, so that's why I have 3 separate "Create Version" actions in my rule (please see my screenshot above). The rule is a global rule which has to be set up to operate on all the relevant projects, e.g:

2024-02-08_13h14_05.png

HTH, 

Kel

Like Anette Unger likes this
0 votes
Answer accepted
Marlene Kegel - codefortynine
Atlassian Partner
May 16, 2023

Hi @Misty Meyers,

I am Marlene from codefortynine.

If you're open to try a Marketplace app, you could check out Version Sync for Jira.

Our app allows you to sync versions between Jira projects. You could either sync them bidirectionally, or to a specific target project.

It's also possible to manage shared version in the Version Sync - Release Overview.

You can read more about our app, in our documentation.

Misty Meyers May 16, 2023

Hi Marlene,
Thank you.  That looks promising. I forwarded the link to our overall Jira Admin to review.

Appreciate you pointing it out!

Marlene Kegel - codefortynine
Atlassian Partner
May 17, 2023

You're welcome, @Misty Meyers. Don't hesitate to reach out to our support if you have questions or feedback. 

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