Where do I find the Jira API to raise a ticket from Winforms .NET application

S Sriram March 15, 2022

I have a Winforms .NET application. I want to raise Jira tickets on encountering errors in the application. I believe I will have to add a web reference to the project. To add the web reference I need a URL to the API page. Where can find the URL?

1 answer

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 15, 2022

Hello @S Sriram 

Welcome to the community.

This page provides information about the Jira REST API

https://developer.atlassian.com/cloud/jira/platform/rest/v3/intro/

S Sriram March 18, 2022

Hello Trudy Claspill. Thanks for responding.

I had gone thru this link before posting the question. The link does not seem to have the info regarding where I can find the REST API. Like I mentioned in the question, I believe that I have to add a Web Reference first. Is that correct? If yes, then how do I accomplish the same?

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 18, 2022

Maybe I'm not understanding your question, but it says right there on the page what the URL is for accessing APIs - https://<site-url>/rest/api/3/<resourcename>

Screen Shot 2022-03-18 at 11.08.24 AM.png

S Sriram March 19, 2022

Hi Trudy

Appreciate your efforts to help

I will try and articulate better. I have a winforms program written in .NET. I was considering the possibility of raising a ticket on JIRA for errors encountered in the program.

In .NET in order to use any REST API I believe we have to create a reference to the API (which typically would be a DLL). Having created that reference then we can call the methods exposed by the API.

Following the example given in the link
'https://your-domain.atlassian.net/rest/api/3/issue/DEMO-1' (substituting 'your-domain' with the actual domain, I get a permission error. I have already obtained the userid and token.
I theorized this could be becoz my domain is on Atlassian cloud, so the .net extension won't work. So I tried this with atlassian.com. And I get a this site cannot be reached error.

So, in sum, I am not able to reach the link from where I can download the API files. Also I am unclear on which URL to pass the user name & token and how exactly this is to be done.

Hope I have been clear enough. 

Thanks

Suggest an answer

Log in or Sign up to answer