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

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

Script runner- run a 'VersionCreateEvent' script by another script listener

Hello,

I have a script listener- custom listener (issue updated event) that adds a new version.

I have a different script- Version synchroniser , that works by 'VersionCreateEvent' event.

The first script didn't call the second script.

Can I add some line that will call the second script from the end of the first script ?

 

It's a little bit urgent so I will be happy for your response.

Thank you,

Daniel

1 answer

1 accepted

0 votes
Answer accepted

I tried this inside a listener and it worked:

if (flag==true)

{ versionManager.createVersion(versionp, null , null, null, projectPatch, null); //PR project versionManager.createVersion(versionp, null , null, null, 11901, null); //wbl project versionManager.createVersion(versionp, null , null, null, 11503, null); //RB project versionManager.createVersion(versionp, null , null, null, 12900, null); //RM project versionManager.createVersion(versionp, null , null, null, 13100, null); //Technical B project versionManager.createVersion(versionp, null , null, null, 12300, null); //Test B project versionManager.createVersion(versionp, null , null, null, 11900, null); //wsi project }

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Statuspage

New feature: Slack notifications for Statuspage

We're excited to announce the release of a long-requested feature on Statuspage. Now visitors to your status page can subscribe to get notified in Slack when you report an incident or maintenance. Th...

51 views 0 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