Hello,
I'm currently running into issues with my Xporter template when trying to iterate an export using labels. I have successfully created a template that breaks down issues using "Status"; however, I cant get a similar result using "Labels". The situation is this:
I'm trying to create a report that separates the issues in the filter by labels. There are 3 labels at the moment (TaskType1, TaskType2, TaskType3). What I really want is a table with TaskType1 issues, a table for TaskType2 issues, a table for TaskType3 issues. Also I would love a table that consists of tasks that didn't have either of those TaskType labels but that is not a priority at the moment. Right now I mainly care about getting those 3 tables down. Below is my current notation:
&{for issues|filter=%{'${Labels}'.equals(‘TaskType1’)}}
&{for issues|filter=%{'${Labels}'.equals(‘TaskType2’)}}
&{for issues|filter=%{'${Labels}'.equals(‘TaskType3’)}}
Does anyone know a solution for this issue I'm having? I have also attached a picture below for more clarification.
Hello Joseph,
You can use JQL queries instead to export information, this way it will export directly from a jql query:
#{for i=JQLIssuesCount|clause=project = <PROJECT NAME>} #{if (%{'${jqlcount: labels = TaskType1}})} ${JQLIssues[i].Key} ${JQLIssues[i].Summary} ${JQLIssues[i].Description} ${JQLIssues[i].Priority} #{end} #{end}
Do the same for the other labels.
We will leave below the documentation related to jqlcounts:
Best Regards,
Team Xporter
Hey Jose,
I have read and tried using this solution but I am still encountering issues. Any insight on what I am doing wrong? I have attached my queries and outputs.
More Info:
1st section is me trying to use my filter with the if statement.
2nd section is me trying to use my project with the if statement. (I dont have the ability to change the global settings)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.