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 automate task creation under an epic using scriptrunner, when a custom field is updated ?

The scenario I'm trying to achieve is as given below : 

Step 1 : Create epic.

Step 2 : using the multi-select custom field "task creator", select the applicable values [can be Backend, andriod, web, QA, etc].

Step 3 : Tasks for the values selected/checked must get created under the epic.

Note 1 : The value selected might be of different project than that of the epic. Ex : Epic might be of Development project, task might be of backend project.

Note 2 : The above mentioned scenario is to be acheived using script runner for JIRA cloud.

Any help is welcome.

Thanks in advance.

1 answer

0 votes
Derek Fields Community Leader Jun 15, 2021

I think that this would be easier to accomplish using Automation for Jira. That said, it should be pretty straightforward. 

You can find example code for creating a sub-task here: Example Custom Scripts (adaptavist.com)

All you need to do is to start by getting the value of the "task creator" field and then loop through the create sub-task code for each selected value. 

I can't provide the code for you since this is a service that we provide to our clients. If you have groovy and REST experience, you should be able to figure it out from the example.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS

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