if statement is possible?

Will August 10, 2022

Dears!

 

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

 

Regards!

1 answer

1 accepted

1 vote
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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 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 Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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.

Suggest an answer

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

Atlassian Community Events