Create
cancel
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

Formula to support in/not in operation

If the structure formula can support in/not in operations it would simplify the formula creation/usage.

Currently, we would need multiple if conditions for simple operations shown below.

Currrent Scenario: 

if(
(safepi = 'PI13' AND status = 'planned' AND safecommitment = 'Committed'), "Yes",
(safepi = 'PI13' AND status = 'planned' AND safecommitment = 'Uncommitted'), "Yes",
(safepi = 'PI13' AND status = 'in progress' AND safecommitment = 'Committed'), "Yes",
(safepi = 'PI13' AND status = 'in progress' AND safecommitment = 'Uncommitted'), "Yes",
"No")

 

Updated Scenario:

if(
(safepi = 'PI13' AND status in ('planned','in progress') AND safecommitment in ('Committed','Uncommitted')), "Yes",
"No")

If we support in/not in operations the usage would be simplified further.

 

1 answer

1 accepted

1 vote
Answer accepted

Hello @alwaysharsha 

Dionathan from ALM Works here.

Here is an example formula you could use as a template:

 

IF ( JQL{
safepi in ("PI13") and
status in ("Planned", "In Progress") and
safecommitment in ("Committed","Uncommitted")};

"Yes"; "No"
)

 

Please note that this formula will work only on the latest versions of Structure (V7.0 +). 

Also, here you can find more information about Formulas and Arrays:  https://wiki.almworks.com/documentation/structure/array-functions-115289495.html

Please let me know if it helps.

Best Regards
Dionathan L

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: Fine Software

Happy New Year, everybody! What better way to kick off 2022 than with a new Marketplace Partner Spotlight ✨ This month, we're getting to know Daniel Franz, co-founder of Fine Software. Fine Software ...

410 views 2 15
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