API which allows to find out if a issue belongs to a search filter or JQL

Hi, Is there any API which allows to find out if a issue belongs to a search filter or a JQL.

While a webhook callback is received , we need to know if a particular issue belongs to a saved filter or JQL, is there any logic which can be written to find this out.

Thank you

3 answers

1 vote

There are two ways to do this.

Write some code which reads all the filters in the system and works out if the issue matches any of them

Write some code which runs each filter (probably with a prepended "key = x" clause) and see which ones return a single result.

Thanks for your reply Nic, however i believe there might be a standard way,  as i look at the sprint board, issues gets added to the board as they matches the issues criteria even with out refresh , that means there is a logic which keep figuring out if an issues matched.

the only reason we are avoiding writing lots of if else code on key and value basis is because that custom fields to issues and there matches with filter might impact as there names (key) are updated in filter or JQL. 

also Nic i couldn't get "Write some code which runs each filter (probably with a prepended "key = x" clause) and see which ones return a single result."

Could u describe a bit details, thanks 

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Apr 17, 2018 in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

765 views 2 19
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you