I'm currently making an automatic email system, and would make it as easy to use as possible.
Within these emails, it includes results from multiple JQL searches. Within Jira, each search already has a filter created for it.
Currently, I am running these searches using a hard-coded string with the JQL search. (see below)
jql_search_1 = 'project = POP AND issuetype in ("SW Defect", "HW Defect") AND "Defect Type" = External'
jql_search_2 = 'project = PO%P AND issuetype in ("SW Defect") AND "Defect Type" = Internal'
I was wondering if there was a way to make this more dynamic, and, instead of hard-coding the search value, get the JQL search string from the associated filter?
So, instead of the above, it would look something more like this:
jql_search_1 = jira_filter_searchval1
jql_search_1 = jira_filter_searchval2
and it would retrieve the data from their respective filter?
Solved, I found the answer here...
Using JQL filters in ScriptRunner - Possible? How... (atlassian.com)
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.