Use JQL query and validate the count returned by the using jira expression in workflow in Jira cloud

Shivendra Singh Chouhan
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!
February 20, 2024

Hi want to validate at the time when an issue is moved to done, whether a set of issues have been marked as Done or not. I have created a JQL for it but I am not able to figure out a way to use it in workflow validator in scriptrunner script. 

Can someone please help me with the way we can use JQL in a validator?

1 answer

0 votes
Kristian Walker _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.
February 20, 2024

Hi Shivendrta,

Unfortantetlyin Jira Cloud it is not possible to use JQL in workflow conditions or validators provided by ScriptRunner for Jira Cloud.

This is because Workflow validators use the Jira Expression framework provided by Atlassian, and the Jira Expression Framework does not provide any way to use JQL in an expression.

This means you will need to write an expression to validate the fields you want to check when the issue has the done status, and the pages above will help explain how to do this.

I hope this helps.



Suggest an answer

Log in or Sign up to answer
Site Admin
AUG Leaders

Atlassian Community Events