![]() ![]() The formatter is used to convert an Issue object to a Json string. You are passing a string to a method that expects an Issue object. I expect there is another message right after that saying that there is no conversion possible from a string to an Issue. The message clearly says that () expects an Issue object for its first parameter. String result = ().Result Īnd using namespace IOnotification_System response = client.PostAsync("issue", content).Result MediaTypeFormatter jsonFormatter = new .JsonMediaTypeFormatter() client = new () Ĭlient.BaseAddress = new System.Uri(postUrl) īyte cred = ("username:password") Ĭ = new .AuthenticationHeaderValue("Basic", Convert.ToBase64String(cred)) Ĭ(new .MediaTypeWithQualityHeaderValue("application/json")) ""description"": ""Creating of an issue using project keys and issue type names using the REST API"", Does anybody know why? public string CreateJiraIssue() I adapted it but get an error by using a self-build class issue with ObjectContent Http.HttpContent content = new Http.ObjectContent(data, jsonFormatter) ![]() Helloworld.html files.I have read one answer on atlassian where one user created a JIRA issue by the following code. You need a simple web server to serve the directory containing your atlassian-connect.json and Step 1: Host the app on a local web server Use ngrok to make the local app available to the internet, and then tell your Jira instance how to find theĭescriptor. This class keeps your app content visible without scrollbars.
0 Comments
Leave a Reply. |