Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,465,243
Community Members
 
Community Events
176
Community Groups

Jira.CreateRestClient throwing an exception

I am a newbie Jira user and am trying to create a Jira client via the Atlassian.Jira SDK method 'CreateRestClient' as follows:


public String JiraQuery()
{
Jira jiraClient = Jira.CreateRestClient(txtSrvrAddress.Text, txtEMail.Text, txtAPIToken.Text, new JiraRestClientSettings());
IProjectService iService = jiraClient.Projects;
Task<IEnumerable<Project>> ienumProject = iService.GetProjectsAsync();

return "Hello there!";
}


However, I am getting the following exception when executing the call to CreateRestClient:

JiraException.jpg

I am at a loss as how to solve this problem. Does anyone have any suggestions?

 

Thanks in advance.

 

Jeff Armstrong

Sr. Developer, Deltek Corporation

 

1 answer

1 accepted

1 vote
Answer accepted
Nir Haimov Community Leader Dec 05, 2022

Hi @JeffArmstrong 

I would recommend you to simply use Jira with basic http rest api calls, without any 3rd party library.

And you will not have any issue

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events