You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Как автоматически установить тему связанной задаче и добавить к ней тему родительской задачи
The approach you are taking will not work.
If you intend to update the Summary according to the Linked Issue, you must use the Condition field instead of the Additional issue actions field.
I have run a basic test in my environment and got it to work. Below is the sample code that I have tested with:-
import com.atlassian.jira.event.type.EventDispatchOption
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.MutableIssue
def mutableIssue = issue as MutableIssue
def summary = mutableIssue.outwardLinks.last().destinationObject.summary
def issueManager = ComponentAccessor.issueManager
def loggedInUser = Users.loggedInUser
mutableIssue.setSummary("Example ${summary}")
issueManager.updateIssue(loggedInUser, mutableIssue, EventDispatchOption.DO_NOT_DISPATCH, false)
Please note that the sample code above is not 100% exact to your environment. Hence, you will need to make the required modifications.
Below is a screenshot for your reference:-
I hope this helps to solve your question. :-)
Thank you and Kind regards,
Ram
Большое спасибо!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.