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,560,236
Community Members
 
Community Events
185
Community Groups

How to Integrate with Microsoft Dynamics CRM Online to Jira Cloud Server.

I am working on Integration with Microsoft Dynamics CRM (Online) to Jira Cloud Server. I am using JIRA REST API with Basic Authentication C#. I am able to authenticate the Jira Server but I am getting Html content rather than json response what I am expecting.

Note : Same code if I am using with Jira Cloud (Trial Account), it is working as expecting.

It would be highly appreciated if anyone can help to me.

Request :

string uri= "https://host:8090/jira/rest/api/2.0/issuetype";

HttpWebRequest request = (HttpWebRequest)WebRequest.Create(uri);

request.Method = "GET";

request.ContentType = "application/json";

request.MediaType = "application/json";

request.Accept = "application/json";

String encoded = System.Convert.ToBase64String(System.Text.Encoding.GetEncoding("ISO-8859-1").GetBytes(_userName + ":" + _password));

request.Headers.Add("Authorization", "Basic " + encoded);

HttpWebResponse urlResponse = (HttpWebResponse)request.GetResponse();

StreamReader reader = new StreamReader(urlResponse.GetResponseStream());

var getResponse = reader.ReadToEnd();

 

 

Response :

<html lang="en">

 ↵

<head>

 ↵ ↵↵↵↵↵↵↵

<meta charset="utf-8">↵

<meta http-equiv="X-UA-Compatible" content="IE=Edge" />↵

<meta name="application-name" content="JIRA" data-name="jira" data-version="7.4.1">

 

<script type="text/javascript">var AJS=AJS||{};AJS.debug=true;</script>↵↵↵ ↵

<meta id="atlassian-token" name="atlassian-token" content="B6NY-PYBN-Y95M-AMS1|73316b8b0b3d50de6f9f70d383594e8a11bb1019|lout">↵↵↵↵

<link rel="shortcut icon" href="/jira/s/lv2jtl/74003/4e40835e1cf615f2937b944763d0a0e7/_/favicon.ico">↵↵↵

// Long content coming here.....

</html>↵"

 

1 comment

Maarten Arts
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
Dec 27, 2017

It might be much easier to use one of the available CRM apps from the Atlassian Marketplace.

Here is an example of an app that connects Microsoft Dynamics with Jira Cloud: https://marketplace.atlassian.com/plugins/jira-crm-integration/cloud/overview

Like OLATUNJI ADEDAYO likes this

Comment

Log in or Sign up to comment