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
Community Members
Community Events
Community Groups

Advanced compare condition - check if a value is selected in checkbox and skip the same value

I have a use case where I need to iterate over a list of values from an Extension for Jira Service Management bundled field and then check the following conditions for each iteration:

  1. check whether the value is selected in a checkbox of an issue noting that not all values exist in the checkbox.
  2. check if the current value is the same as the previous value, if they are the same then skip and move to the next one.

The content of the bundled field is in an array like below where the actual values I want to extract are all in the even indexes. The values in the even indexes are also options in the checkbox but only all of them will be selected in the checkbox.


"subfield_10015": [

            "Solution A",
            "Solution A",
            "Solution B",
            "Solution B",
            "Solution C",
            "Solution D"


I have tried the followings:

  1. Using contains regular expression or contains.
    This option only works if the first value has more than value. In case, where the first value has a single value, this will not work.
  2. Using JQL condition

    While this option works for both single and multiple selected checkbox values. However, sometimes I got the following error.

Also, I have the following conditions

The initial value of the variable prevSolution is EMPTY and I have an action to set the value after a send web request action. image.png


However, it looks like the prevSolution variable has never been set because the following condition is always evaluated to true.


Does anyone have any idea how can I achieve the use case explained above?

1 answer

0 votes
Eric Atlassian Team May 24, 2022

Hi @Priska Aprilia 


Thanks for reaching out! So we can get a little more info about this problem, it’s best if you raise this through the support portal at so the team can take a closer look about the intermittent error you're seeing.  While we're at it, we'll also be more than happy to help figure out the issue with prevSolution not being set.





Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Posted in Jira Service Management

Jira Service Management Documentation Opportunities

Hello everyone, Hope everyone is safe! A few months ago we posted an article sharing all the new articles and documentation that we, the AMER Jira Service Management team created. As mentioned ...

203 views 0 5
Join discussion

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