Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automation: Is there a way to add a quick filter as action in automation

Wilson Lai
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!
September 26, 2022

Hi everyone good day, I am managing releases of my apps using JIRA where we have a Kanban board managing tickets. We use quick filter in board to filter out tickets that will be included in our next releases. Right now I am adding the filter manually with JQL (fix version = xxx) and I just wonder if there's a way to automate this process using JIRA automation. Add a new quick filter when a new release version is created. (I dont seem find anything about quick filter in automation > Action). 

 

2 answers

1 accepted

2 votes
Answer accepted
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.
September 26, 2022

Hi @Wilson Lai 

No, and there are a least a couple of work-arounds...

A) Let's say you wanted to just do this with quick filters...You could use two quick filters such as:

  • Name: next release, with JQL of: fixVersion = earliestUnreleasedVersion()
  • Name: later releases, with JQL of: project = myProjectName AND fixVersion != earliestUnreleasedVersion() AND fixVersion in unreleasedVersions()

B) Dynamically modify your quick filter using an automation rule.  This may be more than what is needed if the above method helps, but just in case...

  • create a filter which meets your needs and save it, noting the filter ID
  • create a board quick filter which uses it, as filter=myFilterId
  • create an automation rule, perhaps triggered on creation of the new version (or release of the prior one)
    • in the rule, call the REST API to edit the filter's JQL to what you need
  • now the quick filter dynamically changes

Kind regards,
Bill

Wilson Lai
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!
September 26, 2022

Thanks @Bill Sheboy . These solutions sound good. I've tried A) and it works like a charm! A few notes for everyone on setting up the earliestUnreleasedVersion(): 

  • earliestUnreleasedVersion is the earliest version in Releases page following the list order but not the actual release day (i.e. the earliest created release)  
  • A leaner version of the function call is earliestUnreleasedVersion(projectName) 
Like Bill Sheboy likes this
1 vote
Mikael Sandberg
Community Champion
September 26, 2022

The short answer is no, you cannot automate adding new quick filters. There is not API endpoint that allows you to do this.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events