Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,560,577
Community Members
 
Community Events
185
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
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Aug 27, 2021

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

Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
Sep 03, 2021

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
AUG Leaders

Atlassian Community Events