Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

Recognition

  • Give kudos
  • My kudos

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Syncing Versions with a Master project using Adaptavist ScriptRunner

We are looking to implement the following using Adaptavist ScriptRunner and wondering if anyone has done the same, with the Cloud version of JIRA.

There are 2 parts to this.

1. From a master project we would create release versions, those versions would be synced down to approximately 5 different projects. So we are looking for an easy way to push down the new versions to the other projects.

2. We need to merge versions, what we are looking to do is merge the versions in the master project which would trigger the merge version in the 5 other projects. We need to ensure that the merge is triggered so that the version number is updated on all the corresponding tickets.

 

Wondering if anyone has implemented something similar, any help would be greatly appreciated.

1 answer

Hi Mark,

Thank you for your question.

I can confirm that there is a plugin for Jira Cloud called Version Sync for Jira which can be viewed on  the Atlassian Marketplace here which is designed to Synchronise versions across projects and I would avdise looking at this plugin to achieve your requirement.

If you wanted to look to implement a script to do with this Script Runner then I can confirm that your script would need to look at  the following Rest API calls outlined below.

    Get Version
    Get Project Versions
    Create Version
    Merge Versions

I have created a code snippet at which shows how you can get all versions for one project and copy them to another project which contains no versions which is located here and you can use this script as a referene guide to create the script that you require to achieve your requirements.

Regards,
Kristian

Thank you so much @Kristian Walker _Adaptavist_ I was able to modify your code and add it as a script listener. I have it triggering off of version created for the main project and it is doing exactly what I needed.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence Cloud

Share your Confluence Cloud experience for a chance to win $500!

Take our 5-minute survey to win a $500 Visa gift card! Are you currently using Confluence Cloud? We want to hear from you! Fill out this quick survey about your Confluence Cloud experience so we ...

139 views 1 8
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you