Script to create Sub-Issues from one Issue with links - ScriptRunner

Sofia March 2, 2015

Hello,

I'm new in scripting with ScriptRunner and I am struggling to find the best way to implement what I want.

I want to write a script in ScriptRunner where when a new Issue (of type Feature for example) is created, it creates automatically four other Issues (of type Activity for example), Sub-Issues NOT sub-tasks, with a specific Summary and creates the Links between the Issue father "Is implemented by" Sub-Issues child's.

Can anyone help me on this?

BR,

Sofia

4 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Sofia March 16, 2015

Hello,

 

This doesn't help me much because I don't know how to write the code.

 

BR,

Sofia

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 16, 2015
Sofia March 16, 2015

Thank you :) but it doesn't have what I want :(

0 votes
JamieA
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.
March 2, 2015

You use IssueService to create issues, then IssueLinkManager to create the links between them. If you google for those two service classes you should find enough to get going.

0 votes
Sofia March 2, 2015

Hello Nic, Yes :) that is what I want. Then when I use the Structure, my hierarchy will be defined using the links. BR, Sofia

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 2, 2015

Just to clarify - you do NOT want sub-issues/tasks. You want to have a setup where "User creates a Feature, and four other issues of type xyz appear at the same level, with links of type abc linking them to the Feature that spawned them"?

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

TAGS
AUG Leaders

Atlassian Community Events