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: 

if statement is possible?

Will
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!
August 10, 2022

Dears!

 

Is possible use if/else statement in JQL clausure in Jira/ITSM ? 

 

Regards!

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Trudy P Claspill
Community Champion
August 10, 2022

Hello @william_ribeiro 

Welcome to the community.

You cannot use if/else logic in a JQL statement.

Can you provide more information about the task you are trying to complete? There may be another solution.

Will
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!
August 10, 2022

Hello Trudy! Thanks for reply.

For example:

if the "issue" have the field "request type"= "JIRA"
then set "affected module" = jira_software

if the "issue" have the field "request type"= "SALESFORCE"
then set "affected module" = salesforce_software

Best regards.

Trudy P Claspill
Community Champion
August 10, 2022

JQL is used to search for issues.

The scenario you describe can be handled using Automation Rules.

https://support.atlassian.com/cloud-automation/docs/jira-cloud-automation/

Automation rules allow you to use if/else-if/else blocks. Are you familiar with the Automation Rules feature? If not you may want to look on YouTube to find video tutorials. There are several available.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events