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.
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.