Forums

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

Can we show "custom field" field value to the linked tickets

Lakshmi CH
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 Leaders.
August 23, 2023

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.

percentage.PNG

4 answers

0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Champion
August 24, 2023

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

listener_config.png

Below are a couple of test screenshots for your reference:-

1. First, I link an issue from Mock project to the Service Test project

test1.png

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 projecttest2.png

 

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

Thank you and Kind regards,

Ram

0 votes
Khang Bui_Candylio August 23, 2023

Hi @Lakshmi CH ,

To answer your question I have a recommendation,

  • Firstly, you need to create automation for 2 projects (For example A and B) set the rules like the attachment below
  • This requires project A link option is "Is blocked by" and project B link option is "blocks"
  • Custom field from project A must have value

I hope this is the result you're looking for. Thus, further research is required (apologies in advance). Good luck!

Sincerely,

Khang

msedge_zdEP0dwnME.pngmsedge_ioCJXUoHuh.pngmsedge_eavUTkzXCf.png

0 votes
Hannes Obweger - JXL for Jira
Atlassian Partner
August 23, 2023

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

0 votes
Kian Stack Mumo Systems
Community Champion
August 23, 2023

@Lakshmi CH, not out of the box. I have clients using Issue Matrix for Jira for that purpose.

Suggest an answer

Log in or Sign up to answer