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: 

XSLX template to export issue links of a project

rbk
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!
May 12, 2020

Hello, 

I'm writing an XLSX template to export the list of links of all issues of a project:

#{for n= JQLIssuesCount|clause= PROJECT=ProjectName AND IssueType=ParentIssueType ORDER BY CustomAttribute ASC}

  #{for i= JQLIssuesCount|clause= issue in linkedIssues(${JQLIssues[n].Key})}

  ${JQLIssues[i].Key}; ${JQLIssues[i].Status}; ${JQLIssues[i].K}; ${JQLIssues[n].CustomAttribute}

  #{end}

#{end}

 

however the exported document contains only the links of the selected project.

Is the query wrong or missing something else ? 

How can i accomplish this query ?

Thanks in advance.

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Ignacio Pulgar
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.
May 13, 2020

Hi @rbk ,

If I'm understanding you correctly, then I think you might need ScriptRunner's linkedIssuesOf() JQL function. ie:

issueFunction in linkedIssuesOf("project = PKEY AND type = Story", "relates to")

Please, note that ScriptRunner is a third party app, so you might or might not count with it installed in your Jira instance.

If you'd like just to improve your search capabilities, I'd recommend JQL Booster Pack instead, as it counts with really cool JQL functions, which also includes the linkedIssuesOf() function.

Hope it helps.