Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard
  • Community
  • Products
  • Jira
  • Questions
  • Автоматически установить тему связанной задаче и добавить к ней тему родительской задачи

Автоматически установить тему связанной задаче и добавить к ней тему родительской задачи

Edited
Регина Андреева
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!
Nov 13, 2023

Как автоматически установить тему связанной задаче и добавить к ней тему родительской задачи

1 answer

1 accepted

0 votes
Answer accepted
Ram Kumar Aravindakshan _Adaptavist_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Nov 14, 2023

Hi @Регина Андреева

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:-

image1.png

I hope this helps to solve your question. :-)

Thank you and Kind regards,

Ram

Регина Андреева
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!
Nov 15, 2023

Большое спасибо!

Suggest an answer

Log in or Sign up to answer