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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,559,427
Community Members
 
Community Events
184
Community Groups

There is a way to add a filter in a task description or as a comment ?

There is a way to add a filter in a task description or as a comment ?

I want to see the results of the filter in task either in the description or in the comment (or in any other way).

Preferably without saving the filter. I want to add directrly tha JQL in the task.

1 answer

0 votes
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 22, 2021

Hi @iskoutari  - I am not completely understanding your question. Can you provide a detailed explanation of exactly what you are trying to do? 

Hi,
for example: I have a jira task and I want to add in description or in comment a list of tsks based on filter (eg "Software Version[Labels]" = 1.67.0 ORDER BY status ASC, assignee ASC). But the software version is increasing every week, so I do not want to create a new filter every week.

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 22, 2021

I am not aware of a way to dump the results of a filter into another field. If the values were already in a field, you could copy those into the Description field or into a comment, but not the list. 

@Bill Sheboy  - Any wizardry here?

Like iskoutari likes this
Bill Sheboy
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.
Sep 22, 2021 • edited

Hi @iskoutari and @John Funk 

I noted two ideas here:

  1. dynamically refresh a filter over time
  2. put the results of that filter into a field like Description, or add a comment

#1) For the dynamic filter, the ability to do that depends on how you determine something is your next software version.  If that is related to fixVersion, it could be easy as checking the earliest unreleased version.  Or, if the value is always increasing, you could run a query to get the latest value using lookupIssues and JQL to sort the results.  For example if you only used this for stories:

project = myProject AND issueType = Story ORDER BY "Software Version[Labels]" DESC

Then grab the first value from the result in lookupIssues to use in your query:

"Software Version[Labels]" = {{lookupIssues.first}} ORDER BY status ASC, assignee ASC

 

#2) To next put the results into a field like description or a comment, you could use a second lookupIssues call with that built JQL, and then format the results in your field:

{{#lookupIssues}}
<a href="{{url}}">{{key}} - {{summary}}</a>
{{/}}

Please note that lookupIssues only supports some issue fields.  If you need other fields, you will need to call the REST API and parse the results into a list.  Also note that lookupIssues can only return up to 50 issues; if there are more they will be missing from your list.

 

Kind regards,
Bill

Like # people like this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events