Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Hi All, I need some help with the below ScriptRunner query. I tried using it, but it is returning an

Hi All, I need some help with the below ScriptRunner query. I tried using it, but it is returning an

Suraj
May 6, 2026

Hi All, I need some help with the below ScriptRunner query. I tried using it, but it is returning an error. Could someone please check and share the correct query?

project = "Store Associate Technology ART" AND
"Team[Team]" = 45e61e11-ae1c-4bbf-8993-8778f6f9eca4 AND
issuetype = Story AND
issueFunction in linkedIssuesOf("issuetype = Bug AND created > statusChangedDate('Done')", "relates to")

1 answer

0 votes
Aaron Pavez _ServiceRocket_
Community Champion
May 6, 2026

Hi @Suraj 

Where are you trying to run this? This is a JQL query you need to run under Search work items.

Can you tell us where exactly you are running this?

Regards

Suraj
May 6, 2026

Hi @Aaron Pavez _ServiceRocket_ 

I am running in script runner app, 

Aaron Pavez _ServiceRocket_
Community Champion
May 6, 2026

As mentioned, that's a JQL query, not Scriptrunner. Unless you run this in the ScriptRunner Enhanced Search.

Regards

Suraj
May 6, 2026

Screenshot 2026-05-06 224136.png
where you can see this i am running this ScriptRunner @Aaron Pavez _ServiceRocket_ 

Aaron Pavez _ServiceRocket_
Community Champion
May 6, 2026

Got it. Can you tell us what you are trying to achieve with this part?

AND issueFunction in linkedIssuesOf("issuetype = Bug AND created > statusChangedDate('Done')", "relates to")

regards

 

Aaron Pavez _ServiceRocket_
Community Champion
May 6, 2026

The problem is between these two values

created > statusChangedDate('Done')

Created is a datetime field.

statuschangeddate is a function.

Cannot compare those two.

This one works:

and issueFunction in linkedIssuesOf("issuetype = Bug", "relates to")

But comparing a datetime to a function, it won't. You need to compare something else.

regards

Suraj
May 7, 2026

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events