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

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

Suggest an answer

Log in or Sign up to answer