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,298,803
Community Members
 
Community Events
165
Community Groups

JIRA API call to fetch data from script runner enhanced search in cloud jira

IssueFuction in Jira Server is working fine but it is not working with Jira cloud. The API I use is 

issuetype="Bug" and issueFunction in addedAfterSprintStart("board name", "sprint name") and resolution in(Done,Unresolved). This worked fine with JIRA server but in JIRA cloud the JQL and the API call is not working. We tried to use the script runner enhanced search and were able to get the result. But the API call is giving us an error " {"errorMessages":["Field 'issueFunction' does not exist or you do not have permission to view it."],"warningMessages":[]}" Eventhough the script runner plugin is available.

1 answer

1 accepted

0 votes
Answer accepted

This is because JQL in Jira Cloud does not allow us to add things like issueFunction into it.  So standard JQL can't use it.

As you've already found, Scriptrunner's enhanced search does do that.

But, I suspect your "api call" is to Jira's search function, not Scriptrunner's enhanced search. so it's failing because issueFunction is not there.

I'm afraid I do not know if SR for Cloud has a REST API you could call for the enhanced search, but I will ask!

Did we get an answer for REST API you could call for the enhanced search

Eep!  Sorry.  I asked Kristian but got distracted and forgot to post back here!

There are no rest APIs for enhanced search.

But, you can make a rest call  to a standard Jira filter which is created when they save an enhanced search filter as this will have the issues returned by the enhanced search filter in it.

It's been months but how do we do this  "But, you can make a rest call  to a standard Jira filter which is created when they save an enhanced search filter as this will have the issues returned by the enhanced search filter in it."

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Confluence

An update on Confluence Cloud customer feedback – June 2022

Hi everyone, We’re always looking at how to improve Confluence and customer feedback plays an important role in making sure we're investing in the areas that will bring the most value to the most c...

233 views 1 4
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you