Forums

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

[JIRA-cli] can not createOrUpdateIssue a subtask

phat_pham_nfq_asia
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!
July 5, 2020

by running

acli \
--action createOrUpdateIssue \

-- type 'Sub-task' \

 

I get the error, even after I specified --parent:

 Client error: 'Sub-task' is not an allowed value for type.

 

if I change type to Task, it said that:

 Remote error: issuetype: Issue type 10001 is not a sub-task but a parent is specified.

 

2 answers

0 votes
Deleted user July 6, 2020

Hi @phat_pham_nfq_asia ,

 

The createOrUpdateIssue action works when Search for an issue using JQL. If a single issue is found, update it. If no issue is found, create it.

Please refer to the below working example and execute the same.


--action createOrUpdateIssue --project "RSTEST" --type "Sub-Task" --summary "summary-testing-cli" --jql "project = RSTEST and summary ~ "AM1"" --parent "RSTEST-13"

Issue RSTEST-19 created with id 10193 as subtask of RSTEST-13.

 

If you still face any issue, please share the action that you are executing, also share the debug logs by appending --debug to the action. Please refer the following debug sample command:


--action createOrUpdateIssue --project "RSTEST" --type "Sub-Task" --summary "summary-testing-cli" --jql "project = RSTEST and summary ~ "AM1"" --parent "RSTEST-13" --debug

Note: Once you run the command by appending --debug, debug logs will get displayed on the screen(Terminal/command prompt). Please copy and paste all the logs along with the command into a file and attach the file to this support request.

We are from BobSwift support team and we have created a support request on behalf of you in our portal. Please sign up here to our portal and let us know once you are successful with the signup process. We will add you as the reporter and then you can access the support ticket SUPPORT-4295.

Thanks,
Raja

phat_pham_nfq_asia
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!
October 15, 2020

Thanks for your thorough response, I have registered my account in your portal with my email phat.pham@nfq.asia

As for security reason I can not share my debug output, but the message is still the same when I change type from 'Sub-task' to 'Sub-Task'. And yes I did use text instead of number, is there any further diagnose on what I have done wrong?

My command:

acli -s [SERVER] -u [USER] -t [TOKEN] --action createOrUpdateIssue --project [PROJECT_NAME] --parent [PARENT_ISSUE_KEY] --jql "Issue = XX-xxx" --summary "*this has been removed because it contains sensitive data*" --description "*this has been removed because it contains sensitive data*" --type 'Sub-Task'

Client error: 'Sub-Task' is not an allowed value for type.

Sorry I let your support hang for 3 months, I just have the chance to revisit this.

0 votes
Sivarama Krishna K
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.
July 5, 2020

Have you used 10001 or Sub-task?

recommend to use Text instead of number.

And also make sure the Project schema for Issue Types consists of Sub-Task.

 

As per my knowledge, those are the only suspects.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events