Forums

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

Validation with ScriptRunner

Thais de Sousa Lima
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 13, 2026

Hi guys,
Is it possible to block a transition if there is another issue in a different project with the status In Progress?
The situation:
I need to block users from moving issues if there is any issue in another project without an assignee.

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
Evgenii
Community Champion
February 13, 2026

Hi, @Thais de Sousa Lima 

Can you add some more details?
How you want to define, what issue is blocker?
It's some linked item?

Without it it's difficult to answer, how to implement it.

Best regards,
Evgenii

Thais de Sousa Lima
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 13, 2026

Hi @Evgenii ,

Example:
Block the status transition of any issue in Project = Apple if there is any issue in Project = Ball where customfield_123 = Apple and status = In Progress.

Evgenii
Community Champion
February 13, 2026

Got it.

Unfortunately, its not possible. 

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.

It was discussed in similar post
https://community.atlassian.com/forums/Jira-questions/Use-JQL-query-and-validate-the-count-returned-by-the-using-jira/qaq-p/2614228


You can validate by linked issues, but not by JQL.
Example of validators:
https://docs.adaptavist.com/sr4jc/latest/features/workflow-extensions/example-conditions-and-validators

 

 

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events