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

adding a linkedissuekey in the summary title

serkan_sezer June 8, 2021

Hello Community,

I created it using the "Create / Clone issue(s) (JMWE app)" post function.

I want to add an issue linked key in the summary title.

Sample; " CD-137 - Ön Analiz Alt Görevi - deneme livaneli 1 - MD-102 "

using which parameters can I add an issue linkedkey in summary

thank you 🙏

2.png

1.png

 

2 comments

Suprija Sirikonda _Appfire_
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.
June 9, 2021

Hi @serkan_sezer ,

As you have selected "Set field value to constant or Groovy Template" for the Summary field, the format should be <%=issue.getLinkedIssues()%>

<%=issue.get("issuekey")%> - Pre-Analysis Sub-task - <%=issue.get("summary")%> - <%=issue.getLinkedIssues()%>

issue.getLinkedIssues() returns the list of all issues linked to the current issue through any link type - it does not include system links such as Epic/Story, Parent/Sub-task and Portfolio hierarchy.

To get issues linked through a specific link type, use : 

<%=issue.getLinkedIssues("link name")%>

Ex : <%=issue.getLinkedIssues("is blocked by")%>

Hope this helps!

Regards,

Suprija

Like serkan_sezer likes this
serkan_sezer June 9, 2021

@Suprija Sirikonda _Appfire_ thank you so much. My problem is solved :)

David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 9, 2021

Hi @serkan_sezer ,

are you trying to include the issue key of the new issue in its own Summary? You can't do that in the template for the Summary field, since when that's evaluated, the new issue doesn't exist yet and thus doesn't have a key...

You need to add the new issue's key to the summary after it has been created. For that, you can use the "Post-creation script" option, with this script:

newIssue.setFieldValue("summary", issue.get("summary") + newIssue.key)
Like serkan_sezer likes this
serkan_sezer June 9, 2021

@David Fischer

thank you so much, I solved the problem on the first try :)

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events