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,556,502
Community Members
 
Community Events
184
Community Groups

How to create a script runner filter using jira rest API

Farwa Shahid
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
Apr 19, 2023

I've to create a filter containing issueFunction field, using rest API.
I can create such filter manually in browser using below JQL

'issueFunction in issueFieldMatch("project = TEST", "labels", "test_label")'

but while trying with create filter API, I get

Field 'issueFunction' does not exist or you do not have permission to view it.

on running the same JQL in Jira navigator I get
The "issueFieldMatch" JQL function provided by "Adaptavist Scriptrunner" for Jira Server works differently in Jira Cloud. Run it directly in "Enhanced Search" instead. 
Do create filter API only works with normal fields ? Or is there any way I can use issueFunction with create filter API ?

1 answer

1 accepted

So in the cloud, you need to think of ScriptRunner and and JIRA Software as two sperate applications. All issueFunctions belong to ScriptRunner, therefore you cannot request to these through the JIRA API.

Last I checked there is no direct API to ScriptRunner unfortunately. Something you can request from adaptavist I guess.

The only workaround I can think of is to create the filter in Apps -> ScriptRunner Enhanced Search. The export this at a JIRA filter. Then from here you can make API calls to the JIRA filter.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events