Link to home
Start Free TrialLog in
Avatar of Olga Barannik
Olga Barannik

asked on

Need help with Jira CLI action Regex Pattern

I have a code for Jira CLI action. It creates an issue based on filed value.The field is a list of choices, Example, filed name -
Food, choices are Fruit, Vegetable etc.

How to change the code below, if I change Food field to choice list with subchoices, and select not just "Vegetable", but "Vegetable" - "Tomato"?

Food
   Fruit 
      Apple
      Orange
   Vegetable

      Tomato
       Potato

CLI action

Condition value: %customfield_10000%, Regex pattern: Vegetable, Exact

Product: Jira

Action: --action run --common "--project %project%" --server %base_url% --user "user" --password "password!"

Data:
    --action createIssue --type "To Do" --summary "Summary" --parent "%parent_key%" 


Avatar of Zvonko
Zvonko
Flag of North Macedonia image

It depends on the content of your field customfield_10000 

I supose this should be enough:
Condition value: %customfield_10000%, Regex pattern: Tomato, Exact 

Open in new window

Avatar of Olga Barannik
Olga Barannik

ASKER

Can anyone help me to contact support group?
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.