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

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 Leaders.
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 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events