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/
Wow that looks horrible in a comment but I hope that it helps! I put it in a comment because it is not really an answer but rather a helping hand. :)
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.
Hi Community friends, We're working on sourcing more reviews on Capterra – a popular software review site – to help teams like yours make more informed decisions when choosing an inc...
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