Can you please share the CLI command for custom multiple

Valarmathi T
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 9, 2024

createIssue --project "$PROJECT" --type "Work Request" \
# --summary "TESTING ITrack Creation from IR " --description "Please ignore this" \
# --custom "customfield_13489:XXX,customfield_10381:1111111,customfield_25572:99562535344,customfield_25571:2040.06,customfield_25570:AAA"

 

 

How to send multiple values in custom tags ,  Please update example Query ,

 

1 answer

0 votes
Reshma Begum _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 9, 2024

Hi @Valarmathi T ,

To pass multiple custom field values with the createIssue action, you need to use the --field parameter. 

Below is an example 

--action createIssue --project "TEST" --type "Story" --summary "json" --field "{\"custom-date\":{\"offset\":\"-30\",\"value\":\"%now%\"},\"Story Points\":{\"offset\":-4.2,\"value\":\"10.1\"},\"custom-multi-select\":\"s1,s2,s3\"}" --date "{\"offset\":5,\"value\":\"%now%\"}" --dateFormat "yyyy-MM-dd"

Please check out the example page for more help. 

Hope this helps!

BTW, I am Reshma from Appfire, a vendor of CLI products.

Thanks

Reshma 

Suggest an answer

Log in or Sign up to answer