I created a new Trial account, and set up my first project. I added an issue, and several other pieces. I need to access that data via the API using C#.
For right now, I'm using Basic authorization and am including my username and password in the headers. My account is set up as the Admin for the project.
The URL that I'm sending a GET to is http://[my account].atlassian.net/rest/api/latest/issue/TP-1 where TP-1 is the ID for the project I created. With my correct username and password, the result that I'm getting gives the following content:
"You do not have the permission to see the specified issue.",
What am I missing? When I query for my projects, I receive an empty array. Is this a limitation of the Trial version?
I can post my code if necessary, but I haven't seen other references to C# code and didn't want to muddle my question.
We place no trial limitations on the REST API because we DO want you to start writing integrations for our products. My suggestion would be: try hitting the rest endpoints with the Rest API Browser (https://developer.atlassian.com/display/DOCS/Using+the+REST+API+Browser) and then just copy what that does in C#. That would be the easiest way to make sure that you are doing it right. If you want an instance that has the REST API Browser for development then just install the atlassian plugin SDK https://developer.atlassian.com/display/DOCS/Set+up+the+Atlassian+Plugin+SDK+and+Build+a+Project and then, in a terminal: 'atlas-run --product jira'. That will bring up a jira at localhost:2990/jira with the Rest API Browser installed. You can get to the Rest API Browser easily by using the 'dot dialog': http://blogs.atlassian.com/2012/08/jira-tip-of-the-month-dot-and-comma-dialog-shortcuts/
My suggestion for you, try JIRA REST Client. I'm using it and it's cool )).
SearchResult searchResult = restClient.getSearchClient().searchJql( filter, progressMonitor );
Iterable<BasicIssue> userIssueList = searchResult.getIssues();
here, in filter you'll write JQL and get what you want. In userIssueList there is everything about issue.
Good Day, Bad bad traffic, not sure why!!!! 1/2 hour commute took me 2 hours today 🤯 What helped me is that I kept browsing LinkedIn until...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs