problem understanding JIRA CLI with cascading field and csv

Hi

We use a cascading field in JIRA and it is set as required. We need to create 100s or more test cases via the CLI

We have the following csv to import

action,project,type,summary,assignee,reporter, customfield_10133,asCascadeSelect

createIssue,VTP,TestCase,deleteme,jon.smith,jon.smith,15486,15487

I am able to create the first half of the menu item, but not the second.

I have tried commas, quotes, etc.

If we remove the customfield and disable it as required, we can import. We want to keep the menu required and import the field as part of the csv import.
The values from the database are:
<colgroup><col span="3" width="64"> <col width="194"> <col span="2" width="64"> </colgroup>
ID CUSTOMFIELD CUSTOMFIELDCONFIG PARENTOPTIONID customvalue
15486 10133 10163 NULL File Menu
15487 10133 10163 15486 Symbols > New...
15488 10133 10163 15486 Symbols > Load...

1 answer

1 accepted

Cascade select types are a bit of pain. There are 2 options for this. If you have any problems, open a support issue at JIRA Command Line Interface.

1. Use --common "--asCascadeSelect" on runFromCsvwith something like

action,project,type,summary,reporter,field,values
createIssue,VTP,TestCase,deleteme,john.smith,customfield_10133,"15486,15487"

2. Use --common "--asCascadeSelect" on runFromCsvwith something like

action,project,type,summary,reporter,field,values,issue
createIssue,zjiracli,task,deleteme,admin,
setFieldValue,,,,,customfield_10133,"15486,15487",@issue@

Thank you! I used the first example and added a comma between values and customerfiled_10133 and it worked.

Cheers mate!

Oops - I was having some cut/paste issues with the editor :(. That was extraneous data - you don't need (and shouldn't have) the custom field in the header line. I fixed the reference. Good job in getting it working anyway!

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Amir Kazemi
Posted 5 hours ago in Jira

We want to know what Jira Service Desk apps you're using!

Hi Community! My name is Amir and I’m on the Jira Service Desk product marketing team at Atlassian. Our team would love to understand how you’re leveraging our ecosystem for Jira Service Desk. Wha...

22 views 0 4
Join discussion

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