12/3/2023 0 Comments Jira client url![]() ![]() Could it be that the "API" Key does not work like the "Personal Access Token" ? We are using our "own" JIRA server so not anything in the atlassian domain. Also, you can get the URL/URI from the HTTP request itself inside the controller of the framework you use (e.g. This worked finally but leads to "unauthorized" access. You can get the instance URL from the context using xdme as stated in Context guide - Context parameters (). Return JsonConvert.DeserializeObject(jsonContent) Meanwhile I tried: var result = _client.PostAsync("/rest/api/3/issue", new StringContent(new JavaScriptSerializer().Serialize(data), Encoding.UTF8, "application/json")).Result Do you have any clue what is going on here? All members of httpcontent do not have any member function that could be typecasted. The second one I did not find a conversion yet. NET 4.8: HttpClient does not support methods PostAsJsonAsync and ReadFromJsonAsync. Var result = await client.PostAsJsonAsync("/rest/api/3/issue", data) ![]() Public static async Task CreateTaskTicket(Uri jiraUri, string userName, string apiKey, string projectKey, string summary, string description) Private static HttpClient client = new HttpClient() In case of a success, the result contains: "This is a ticket created from C# code!") Then to use the method, it's enough to call it like this: var result = await JiraHelper.CreateTaskTicket( Enter the web address of your Jira Software instance in Client URL. summary: The title that you want to show for the ticket Find Jira from the search box and click Add.You can see it usually as initial of the tickets, or see it in the projects list, the key column. projectKey: This is the key of your project.Once you save you r configuration, you can proceed to configure your mail server to use OAuth 2.0 as the authentication method. You cannot use your password, you first need to create an API key. You need to provide the redirect URL that your application generated at the service provider’s site. userName: This is the username that you use to login in Jira, something like apiKey: This is the API key that you created for login. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |