Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,368,286
Community Members
 
Community Events
168
Community Groups

if statement is possible?

Will I'm New Here Aug 10, 2022

Dears!

 

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

 

Regards!

1 answer

1 accepted

1 vote
Answer accepted

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 Aug 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.

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS

Atlassian Community Events