how to combine logic operators in a web item condition

David Torres October 1, 2018

Hi everyone

I would like to have a condition like :

a AND (b OR c)

is there a way to define it in the atlassian-plugin.xml??

thanks in advance!!

1 answer

1 accepted

0 votes
Answer accepted
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 8, 2018

David,

Can you just clarify exactly what you are trying to do with this? How exactly do you need Jira to behave? 

Shannon

David Torres November 23, 2018

Hi, I appreciate your help, this worked to me:

 

<web-item>
<conditions type="AND">
<conditions type="OR">
<condition class="ClassA"/>
<condition class="ClassB"/>
</conditions>
<condition class="ClassC"/>
</conditions>
</web-item>

It translates to (A OR B) AND C. 

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 26, 2018

Hi David,

Thank you for letting us know how you were able to solve your issue.

Take care, and have a pleasant week.

Regards,

Shannon

Suggest an answer

Log in or Sign up to answer