Как автоматически установить тему связанной задаче и добавить к ней тему родительской задачи
Hi @Regina Andr
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.