Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to obtain multiple values via getFieldValue?

Ieng Lao
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!
September 20, 2018

Hi, 

I know that we can obtain the filed value one at a time.  Is there a way to get multiple values in one command?

jiracli_prod --action getFieldValue  --issue "JIRA-1234" --field "Assignee"

 

jiracli_prod --action getFieldValue  --issue "JIRA-1234" --field "Assignee" --field "Created" --field "Reporter" --filed "Project"

Or 

 

jiracli_prod --action getFieldValue  --issue "JIRA-1234" --field "Assignee, Reporter, Project"

 

Thanks,

Ieng

2 answers

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.
December 3, 2018

Hi @Ieng Lao,

Thank you for submitting your question with us!

You can display multiple field values using the runFromCsv action. Please use the below sample command to get multiple field values of an issue.

--action runFromCsv --common "--action getFieldValue --issue "JIRA-1234" " --file valuelist.csv

In the CSV file, mention the field names that you wish to display as shown below (mention each field attribute in a new line followed by "field").

valuelist.csv

field
Project
Created
Assignee
Reporter

In the importer.properties file you have to mention the value as shown below.

importer.properties

field.Key = issue

 Note: Kindly place the CSV file and the importer.properties file in your CLI folder.  Also please follow the steps for How to use runFromCsv page for further information.

If you are facing any issues please provide us the debug logs by appending --debug to the action and also provide us the action which you are trying to execute.

Thanks,

Reshma

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.
December 3, 2018

Hi @Ieng Lao,

Thank you for submitting your question with us!

You can display multiple field values using the runFromCsv action. Please use the below sample command to get multiple field values of an issue.

--action runFromCsv --common "--action getFieldValue --issue "JIRA-1234" " --file valuelist.csv

In the CSV file, mention the field names that you wish to display as shown in the below screenshot (mention each field attribute in a new line followed by "field").

valuelist.csv

Screen Shot 2018-12-03 at 4.32.04 PM.png

 

In the importer.properties file you have to mention the value as shown in the below screenshot.

importer.properties

Screen Shot 2018-12-03 at 4.30.27 PM.png 

 Note: Kindly place the CSV file and the importer.properties file in your CLI folder.  Also please follow the steps for How to use runFromCsv page for further information.

If you are facing any issues please provide us the debug logs by appending --debug to the action and also provide us the action which you are trying to execute.

 

Thanks,

Reshma

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events