The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to apply JQL Validator in cloud?

Kartik Pant
May 3, 2022

"JQL Validator -  This validator enables to check the amount of issues of the JQl Result"

I couldn't find the above validator on Jira Cloud. Is there any way I can apply the validator in cloud?

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

4 votes
Answer accepted
Oliver Siebenmarck _Polymetis Apps_
Community Champion
May 3, 2022

Hi @Kartik Pant

To the best of my knowledge, there is no good way to achieve this. With Jira Cloud, you are limited to what Jira Expressions can do – which is a lot, but not JQL.

Now, what could you try if you absolutely had to come up with something? You could use Jira Automation to update a specific issue with the result of your JQL whenever something according to your JQL is updated. You could then load the result from that specific issue in your validator like this:

// Assuming the issue is PRJ-01 and you store your JQL result in customfield_10123
new Issue('PRJ-01').customfield_10123

I don't I would recommend this approach, because it's a bit brittle with that hardcoded issue key. But it certainly should work, if you really need it.

Hope that helps,
 Oliver