We used to call Jira REST API in Jira Data Center version for ScirptRunner query function like
issueFunction in subtasksOf("status in ('Sprint Complete') ")
However after migration to Jira Cloud, issueFunction has been moved to ScriptRunner Enhanced Search App, and previous API call cannot work for it.
Is there any solution in Cloud for how to script/program such kind of query?
Thanks.
Hey @jacob cheng
Have you tried creating a filter in ScriptRunner Enhanced Search ? Once you create a filter you can call the REST api for searching issues and use filter = <filter-id> in the request!
Let me know if this works and please accept my answer if it was helpful! Have a great rest of your day.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jacob,
I can confirm that in Jira Cloud you can only use the issueFunction() JQL function provided by ScriptRunner on the Enhanced Search page as described in the documentation here.
This is because Atlassian restricts how the JQL functions can interact with their infrastructure, meaning we must run them in a sandbox process.
However, this does not mean they cannot be used inside other filters or on filters for Agile boards or in calls to the Search rest API.
To use the functions in other filters, you may follow the steps outlined below.
Create the JQL search used by your board filter or quick filter and reference the saved filter using the syntax shown below which will return the results of your filter using the JQL functions provided by ScriptRunner.
filter = "<NameOfFilterHere>" |
Using this approach, you will be able to use your filter in agile boards or in calls to the Search API.
I hope this helps.
Regards,
Kristian
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.
I am glad this works and solves your issue :)
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.