Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automaticly adding story to epic

Paweł Dąbrowski
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 20, 2023

Hi,

I'd like to automaticly add a task to epic (from Project B) when it will be moved from Project A to a Project B if the task has specific label. 

I can't find a way how to do this or is it even possible. 

 

2 answers

1 vote
Elifcan Cakmak
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 Champions.
October 4, 2018

Hello,

After you set customfield value, you need to update the issue as well. Could you try this after you set the field values:

updateIssue(ApplicationUser user, MutableIssue issue, EventDispatchOption eventDispatchOption, boolean sendMail)

This method will store the provided issue to the JIRA datastore.

For example:

issueManager.updateIssue(user, issue, EventDispatchOption.DO_NOT_DISPATCH, false)

You need to import event dispatch option, too

import com.atlassian.jira.event.type.EventDispatchOption

Regards,

0 votes
Elifcan Cakmak
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 Champions.
October 4, 2018

Hello,

After you set customfield value, you need to update the issue as well. Could you try this after you set the field values:

updateIssue(ApplicationUser user, MutableIssue issue, EventDispatchOption eventDispatchOption, boolean sendMail)
This method will store the provided issue to the JIRA datastore.

For example:

issueManager.updateIssue(user, issue, EventDispatchOption.DO_NOT_DISPATCH, false)

You need to import event dispatch option, too

import com.atlassian.jira.event.type.EventDispatchOption

Regards,

Elifcan Cakmak
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 Champions.
October 4, 2018

Sorry, something went wrong and my answer is posted twice :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events