Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Can I use Jql as a condition for Behaviours?

I would like to use Jql as a condition for Behaviours.
Is it possible?

2 answers

2 votes
Jimmy Seddon Community Leader Apr 10, 2020

Hi @Jae Hoon Koon _Jae Hoon Lim_,

Welcome to the community!

I will start by admitting that I'm by no means an expert when it comes to behaviours, however in an effort to try and find you an answer to this question, I dug into Adaptavist's documentation and found this:

It appears that you can write groovy script as your condition which in theory should allow you to write the same contents of what would be a JQL query.

I'm not sure if this will work for your particular use case, but it might be worth taking a look.

I hope that helps!


1 vote
scott_boisvert Community Leader Apr 10, 2020

Could you be a little more specific in what you mean by 8sing JQL in Behaviours?  You can apply conditions based on fields similar to JQL.

Could you provide a use case of what you are trying to do?

Hi , 

Even I have the same concern where I am using Time to SLA for Jira  Plugin and ScriptRunner Plugin. 

Suppose I have SLA set - In Progress -> Review  ( SLA will start In Progress status and 

will be met in Review status )

My use case is I want comment to  be mandatory if SLA is breached for transitioning In Progress to Review  , so can we use scriptrunner behaviour feature ( applying jql condition ) 

Hello @Jagruti Mhetre 

I do not know much about using JQL in Behaviours but you can use slaFunction = isBreached() to achieve that.

More info here.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

839 views 17 21
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you