The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

get outward linked issue summary

Ramaiah Pendli
December 10, 2023

Hi,

We are using the Jira Cloud scriptRunner custom fields.

if issue type is release approval then i need to get the lined issue outwardIssue summary.

 

Thanks

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

4 votes
Answer accepted
RambanamP
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 Champions.
December 10, 2023
def linkedIssueSummary

// Check if the issue is an Epic issue

if (issue?.fields?.issuetype?.name == "Release Approval") {    

    issue.fields.issuelinks.each{ issueLink ->
        if(issueLink?.type?.name == "Approval"){
            linkedIssueSummary = issueLink?.outwardIssue?.fields?.summary
        }        

    }       



if(!linkedIssueSummary){
linkedIssueSummary = issue?.fields?.summary
}

return linkedIssueSummary

 

You can try with something like above script 

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events