Hi,
I wanted to know how to get roles listed at http://www.example.com/secure/project/ViewProjectRoles.jspa
via rest api?
As per the documents, there is an api https://docs.atlassian.com/jira/REST/latest/#d2e1999 which doesn't work at all, I am getting following message.
Any pointer or suggestion would be great!
Community moderators have prevented the ability to post new answers.
Hi Pradnya!
I guess that you have JIRA prior to 6.4."/rest/api/2/role" appears starting from version 6.4.
maybe you can use "/rest/api/2/project/{projectIdOrKey}/role" that "Contains a list of roles in this project with links to full details." and is available since JIRA 5.0.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pradnya!
The error you're getting is related to the request you made not being able to encounter the page you're looking for. Could you check if the URL used on this request is the same one you use to access JIRA? Also, make sure to include the context path of your application if you configured it to use one.
See examples of URLs using this REST call below:
# Accessed locally, in port 8080 with context path /jira: http://localhost:8080/jira/rest/api/2/role # Accessed through a FQDN (on the internet), in port 80 with context path /jira: http://yourdomain.com/jira/rest/api/2/role # Accessed locally, in port 8080 without context path: http://localhost:8080/rest/api/2/role # Accessed through a FQDN (on the internet), in port 80 without context path: http://yourdomain.com/rest/api/2/role
Let me know if you have any more doubts on this.
--
Cheers!
Joao
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.