Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to get issue key from LinkCreated Event from Script Listener

kponnus1
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 21, 2024

 

1. When any link is created using linkCreated event is it possible to get exact issue key from where the link is created?.

i can use below code to determine source and destination issue id

 

def linkId = issueLink.entrySet().getAt(0).value
def sourceIssueID =issueLink.entrySet().getAt(1).value
def destIssueID =issueLink.entrySet().getAt(2).value
However this source and destination id got changed when issue link type is changes from inward to outward when a link is created 
2.The get issue link API also doesn't support direction to finalize from which issue the link is created like below in jira expression.
See issueLink -> direction

0 answers

Suggest an answer

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

Atlassian Community Events