Forums

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

first time trying to create a Jira API call

dexter.mccloud
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 16, 2020

I am a .Net developer and would like to write c# code to connect to our current sprint and retrieve the stories that are currently in QA or UAT.

 

I used Postman with the url for our current sprint to see the response.  Unsurprisingly, I got the following response: Error: unable to get local issuer certificate.

 

Here is the URL I used in Postman:

https://companyname.atlassian.net/secure/RapidBoard.jspa?rapidView=137&projectKey=TEAM

 

So, my questions:

  1. Is there documentation that will show me how/what I need to pass to the Jira API for proper authenticated?
  2. Is the above URL correct for retrieving stories in our current sprint that are in QA or UAT?

1 answer

1 accepted

0 votes
Answer accepted
DPKJ
Community Champion
September 16, 2020

@dexter.mccloud First of all welcome to the Atlassian Community.

Now coming to your questions, you are not using rest api but the page to retrieve data, which is not correct.

Here is link a to Jirs Software's rest api documentation - https://developer.atlassian.com/cloud/jira/software/rest/intro/

Also if you need any entity that is part of standard Jira like (issues, users etc) you need to use Jira core rest api's - https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/

 

Now coming to authentication part, Jira have two kind of authentication (that are recommended) support,

  1. oAuth - https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-oauth-authentication/
  2. Basic Auth - https://developer.atlassian.com/cloud/jira/platform/basic-auth-for-rest-apis/

And also not so cool Cookie based auth (this is deprecated) - https://developer.atlassian.com/cloud/jira/platform/jira-rest-api-cookie-based-authentication/

 

I hope this help. Now if you have any more feel free to bounce back.

dexter.mccloud
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 18, 2020

Thanks for your help.  I will try your approach!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events