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

Create Epic and tasks using JIRA Script runner

Kevin Seery September 14, 2017

Hi,

I would like user to create an Epic with a number of linked Tasks

(Epic) Product X

(task) Desgin Product X

(task) Build Product X 

(task) Test Procuts X

Can this be done using script runner?

I have looked but can't fine a recent referance to this.

Could this be done using workflow post actions, create Epic then task are created automaicly afterward?

I not very techincal so, any help would be great.

I don't have any money for another add-on.

 

Many Thanks

Kevin

1 answer

Suggest an answer

Log in or Sign up to answer
2 votes
Daniel Yelamos [Adaptavist]
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.
September 18, 2017

Hello Kevin.

Yes this is entirely possible using a postfunction.

In the simplest case, let's say that you want to copy the original issue to the Epic and then to the task.

You would need to:

-----------------------

1. Go to your workflow.

2. Edit your workflow.

3. Go to the transition that you want this to trigger on:

4. Add Scriptrunner postfunction.

5. Select Copy Issue and Links postfunction.

6. Select the fields that you want to propagate to the next issue, for example

     a) Description

     b) Version number

7. Select the issue type as an Epic.

8. Save the postfunction and move it to the last place in the list of postfunctions in your transition.

-----------------------

Repeat this process for your other 

(task) Desgin Product X

(task) Build Product X 

(task) Test Procuts X

BUT bear in mind to set the issue type as "Subtask" or "Task"

 

In the end you would have a total of 4 postfunctions. The first one would be for your epic, and the rest for your design, build and test steps.

Please do say if I can be of anymore help.

Cheers!

Dyelamos

Kevin Seery September 19, 2017

Hi Daniel,

 

This is a great soltuon.

Thanks for your help on this 

Kevin

Daniel Yelamos [Adaptavist]
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.
September 19, 2017

No problem. Could you please accept my answer so that other users know that this has been correctly answered?

Thanks!

DYelamos

sanjay_rakh September 20, 2022

@Daniel Yelamos [Adaptavist]  I don't see Select Copy Issue and Links within workflow postfunction.

TAGS
AUG Leaders

Atlassian Community Events