...
Status is a workflow concept (not the regular JIRA field). It must be updated by workflow progression.
Instructions:
To create the issue(s) using the CLI action:
The following action will create issue of type sub-task(s) only.
Code Block | ||
---|---|---|
| ||
./jira.sh --action runFromCsv --file "samplefile.csv" --common "--action createIssue --continue" |
For this, the CSV file should contain the fields: project, summary, type and parent (only in case of sub-task).
CLI result: When you run the above CLI action the result will be shown as below.
Code Block | ||
---|---|---|
| ||
Run: --project "WUC" --summary "new by run from csv" --type "Sub-task" --parent "WUC-805" --action createIssue --continue Issue WUC-826 created with id 19408 as subtask of WUC-805. Run: --project "WUC" --summary "new1" --type "Sub-task" --parent "WUC-811" --action createIssue --continue Issue WUC-827 created with id 19409 as subtask of WUC-811. Run completed successfully. 2 actions were successful from file: samplefile.csv |
To update the status of the issue(s), run the CLI action:
When u have a list of issue and you want to change the status of the issue, then run the following CLI action.
Code Block | ||
---|---|---|
| ||
./jira.sh --action runFromCsv --file "samplefiletoupdate.csv" --common "--action transitionIssue --continue" |
For this, the CSV file should contain the fields: issue and transition. The value(s) under issue should be the issue key(s) you want to update the status and the values under transition is to what status you want to transit the issue.
CLI result: When you run the above CLI action the result will be shown as below.
Code Block | ||
---|---|---|
| ||
Run: --issue "WUC-802" --transition "Reopen" --action transitionIssue --continue Successfully transitioned issue WUC-802 with transition 'reopen'. Run: --issue "WUC-803" --transition "Done" --action transitionIssue --continue Successfully transitioned issue WUC-803 with transition 'Done'. |
...