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

How to clone test cycle after test cycle was finished?

Hi all,

we're using Test Management 4 Jira at our company, and I'm trying to create a ScriptRunner listener that clones the actual test cycle (with all test cases in it) with a new name once the test cycle was finished. Apparently I should be able to do it with the TM4J API however I'm new to ScriptRunner and I'm not quite sure how to a) make an API call from within a listener & in groovy, b) what service(s) to use to clone a test cycle.

Any help is appreciated, thanks!

1 answer

Hi, 

We recommend looking at our documentation links on how to do this:

https://scriptrunner.adaptavist.com/latest/jira/plugins/working-with-tm4j.html

https://www.adaptavist.com/doco/display/KT/ScriptRunner+for+Jira

You must have, at minimum, TM4J Server version 6.8 and ScriptRunner version 5.6.8.1 installed to use the TM4J events/integration.

Kind regards,

Katy Adaptavist Product Support 

Hi Katy,

thank you for the links, however, I've read all of these documentations and my main problem is that I have no idea what services, objects, methods, etc. to use when writing scripts for TM4J. I've seen in the samples that there's stuff like TestCycleService and others, but how am I supposed to know this exists? Is there a full list of all services/etc. available for this plugin or am I supposed to just figure it out on my own? 

Thanks!

Hi, 

Apologies, we do have documentation for TM4J's Java API, this can be found here: 
https://docs.adaptavist.io/tm4j/server/java-api/6.8.0/

We will be looking to add a link to this to our documentation ASAP. 

Does this help? Is there anything else I can help you with?

Kind regards, 

Bobby

Suggest an answer

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

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

807 views 17 21
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