Forums

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

jira-cli: update project's issue type scheme doesn't work

BarthélémyH
Contributor
May 14, 2012

Hello,

I try to use the command line interface to update the issue type scheme of all my projects in JIRA. I do the following :

./jira.sh -u xxx -p xxx -s https://<myaddress>:8443 -a updateProject --project XYZ --issueTypeScheme "My Scheme" -v

And it says :

Remote error: Resource does not exist. Use -v to see more details.

See the end of the message for the verbose output. I can retrieve information with these credentials, or even create projects seemlessly.

I tried to access directly https://<myaddress>:8443/secure/admin/ManageIssueTypeSchemes.jspa and I get a 404. Could it be a bug in JIRA 5 ? a missing feature ?

Thank you for any hint,

Barth

*********

When I use -v I get the following output :

Server address: https://<myaddress>:8443/rpc/soap/jirasoapservice-v2
Successful login to: https://<myaddress>:8443/rpc/soap/jirasoapservice-v2 by user: xxx
URL requested: https://<myaddress>:8443/secure/admin/WebSudoAuthenticate.jspa?os_username=xxx&os_password=***&authenticate=Confirm&webSudoPassword=***&webSudoDestination=%2Fsecure%2FAdminSummary.jspa&webSudoIsPost=true
Request
type: POST
Content type: application/xml
Post data: null
Reading Key: JSESSIONID
Val: 6E68DEDB39B03B8E0857664553442E89
Reading Key: atlassian.xsrf.token
Val: BYKY-6GVB-QZ5G-Q4L8|67aa365640e0472942397563d69284835e190cae|lin
Response code: 200, message: OK, url: https://<myaddress>:8443/secure/admin/WebSudoAuthenticate.jspa?os_username=xxx&os_password=***&authenticate=Confirm&webSudoPassword=***&webSudoDestination=%2Fsecure%2FAdminSummary.jspa&webSudoIsPost=true
URL
requested: https://<myaddress>:8443/secure/admin/ManageIssueTypeSchemes.jspa?os_username=xxx&os_password=***
Request
type: GET
Content type: application/xml
Response code: 404, message: Not Found, url: https://<myaddress>:8443/secure/admin/ManageIssueTypeSchemes.jspa?os_username=xxx&os_password=***
Problem
determination - response: 404: Not Found
Problem determination - response url: https://<myaddress>:8443/secure/admin/ManageIssueTypeSchemes.jspa?os_username=xxx&os_password=***
Problem
determination - request url: https://<myaddress>:8443/secure/admin/ManageIssueTypeSchemes.jspa?os_username=xxx&os_password=***

Remote
error: Resource does not exist. Use -v to see more details.
org.swift.common.cli.AbstractRemoteClient$RemoteResourceNotFoundException: Resource does not exist. Use -v to see more details.
at org.swift.common.cli.AbstractRestClient.restRequestWithFullUrl(AbstractRestClient.java:530)
at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:294)
at org.swift.common.cli.AbstractRestClient.restRequest(AbstractRestClient.java:324)
at org.swift.jira.cli.JiraClient.getIssueTypeSchemeId(JiraClient.java:3043)
at org.swift.jira.cli.JiraClient.updateProject(JiraClient.java:2905)
at org.swift.jira.cli.JiraClient.handleRequest(JiraClient.java:442)
at org.swift.common.cli.AbstractRemoteClient.process(AbstractRemoteClient.java:119)
at org.swift.common.cli.CliClient.doWork(CliClient.java:299)
at org.swift.jira.cli.JiraClient.main(JiraClient.java:146)
aFi7tdC632 logged out.

EDIT: I have created the following issue for the CLI: https://bobswift.atlassian.net/browse/ACLI-62

1 answer

1 accepted

0 votes
Answer accepted
Bob Swift
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 14, 2012

Please open an issue here: https://bobswift.atlassian.net/browse/JCLI . Indicate your jira version and CLI version.

BarthélémyH
Contributor
May 14, 2012

Done. Thank you in advance for your help. Regards

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events