Create Epic and tasks using JIRA Script runner

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

2 votes

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

Hi Daniel,

 

This is a great soltuon.

Thanks for your help on this 

Kevin

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

Thanks!

DYelamos

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

233 views 2 11
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you