Can someone provide a WORKING example of accessing Jira Cloud from C#?

Clark.Emeal February 3, 2023

Can someone provide a working example of using C# to access a list of issues from the Jira Cloud.

If I use my browser, I can get a list using the following URL.

https://xxxxbt.atlassian.net/jira/software/c/projects/OPCOF/issues

I have spent the last few days trying to find a working example and cannot.

Even the PostMan examples do not work.

https://xxxxbt.atlassian.net/rest/api/3/search?jql=project = "OPCOF"

    "errorMessages": [
        "The value 'OPCOF' does not exist for the field 'project'."
    ],
    "warningMessages": []

All the C# examples are for libraries that no longer exist or have been modified so much the code doesn't match the library API. 

I am trying to do somthing that I believe should be easy.

I want to connect, pull down a list of ALL issues in the project, including all status transitions and comments over time.

Then disconnect.

Any assistance would be greatly appreciated by this frustrated newbie!

Thank you in advance.

1 answer

0 votes
Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 6, 2023

Hi! Welcome to the Atlassian Community.

Personally I do not have experience with the C# and Jira but I do with the REST API in general.

Are you authenticated when performing that REST call? And if you are, does the user have permissions to view the OPCOF project?

You can also try to execute the GET request in your browser and see if that works.
Avoid using spaces and if you do you should urlencode them. Quotes should also be encoded.

Try this: https://xxxxbt.atlassian.net/rest/api/3/search?jql=project=OPCOF

Suggest an answer

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

Atlassian Community Events