Hi Team,
I have a requirement to show a "single selection custom field" value to the linked tickets.
The original ticket is from a different project and the linked ticket is from another project. Please find the attached screenshot for your reference.
Hi @Lakshmi CH
For your requirement, you could try using a Listener with the Issue Link Created Event.
Below is a sample working code for your reference:-
import com.atlassian.jira.issue.Issue
def issue = event.issueLink.sourceObject
def outwardLinks = issue.getOutwardLinks { excludeSystemLinks = false }
def linkedIssues = [] as List<Issue>
if (outwardLinks.size() > 0) {
linkedIssues = outwardLinks.collect {
it.destinationObject
}
}
linkedIssues.each { linkedIssue ->
linkedIssue.update {
setCustomFieldValue('Sample Text Field', issue.getCustomFieldValue('Sample Text Field'))
}
}
Please note that the sample working code above is not 100% exact to your environment. Hence, you will need to make the required modifications.
Below is a screenshot of the Listener configuration:-
Below are a couple of test screenshots for your reference:-
1. First, I link an issue from Mock project to the Service Test project
2. Once the link is created, as expected the Text Field in the issue from the Service Test project is updated with the same value from the issue in the Mock project
I hope this helps to solve your question. :-)
Thank you and Kind regards,
Ram
Hi @Lakshmi CH ,
To answer your question I have a recommendation,
I hope this is the result you're looking for. Thus, further research is required (apologies in advance). Good luck!
Sincerely,
Khang
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Lakshmi CH
as already suggested, this isn't currently possible, however if you're open to solutions from the Atlassian Marketplace, you should get pretty close; see e.g. this thread for possible directions forward.
Best, Hannes
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.
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.