I want to Get valid project key.
When I call the rest api which uri is /rest/api/latest/projectvalidate/validProjectKey
the response is <?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>404</status-code><message>null for uri: http://mydomain/rest/api/latest/projectvalidate/validProjectKey?key=HSP</message></status>
Hi @Ronaldo Huang I checked the endpoint on CLoud it it is working as documented. I think you have Server/Cloud problem. I guess you are on Server (at least your question is created with "jira-server" attribute, but the documentation is for Cloud version of Jira.
There is similar endpoint for server but it probably only validates project key and do not suggest valid one:
Hi, how can I get a suggested valid key from my local jira server by rest api which is like GET /rest/api/3/projectvalidate/validProjectKey on cloud?
Only 'GET /rest/api/2/projectvalidate/key' which validates project key is avaiable in the document above.
I think you will have to do it programatically... for example
only schema of the code
def key = suggestedKey
key = incrementKey(key)
You have to implement methods
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events