Transition Condition based on content of custom field

I have an issue with multiple people giving approval. The reviewers are selected in a custom field by the issue author. The individual approvals are then tracked in another custom field.  I would like to put a condition on the transition to approved status when the custom field content includes all the selected reviewers.

 

I cant use {field_A} = {field_B} since the approvals may come in a random order. Ex:

Required Approvers: A, B, D, E

Approvals Recieved: D, B, E, A

should allow the transtion to approved status.

 

Tips?

1 answer

1 accepted

1 vote
Boris Berenberg Community Champion Sep 12, 2017

What are your custom field types?

Field A is a check box list, populated with selected initials. Field B is a text box with the same initials being appended.  If I could force the approvals to come in in the same order as the field A selections, then the straight = would work, but the approvals can come in any order.

I need the syntax to search: "is E anywhere in {field B}"

Boris Berenberg Community Champion Sep 13, 2017

Why not just use checkboxes for both? You're relying on issue history for auditing either way. 

 

You may may consider using two user picker fields instead with transitions to approve into the second field. It makes it enforced by who users actually are, not just a trust that the change history will save you.

Yes, that worked. I thought that using check boxes would display boxes, rather than just a text list, but that is not the case.  Using the check boxes keeps the user approvals in order, making it possible to compare fields as =/!=. 

 

Thanks!

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

696 views 3 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you