Posts

Showing posts from February, 2016

Create (post) JIRA ticket (Issue) with rest API using C# ASP.NET

Today I will show you how to create new JIRA ticket using C#, you can use this code in class library then you can use it in any .NET application (like ASP.NET).using JIRA web service(REST API) you can retrieve and post Jira tickets by creating rest call to web services,for example : http://localhost:8080/rest/api/latest/issue/PROJ-2 calling this url will return json object contains the full information about issue with key (PROJ-2) so each issue or project have a key. Quick helpful links see how to install Jira on your windows JIRA rest API POST Generate C# class from JSON Now to post new issue follow the instructions : Create Console Application Project in Visual Studio. Download the following libraries by NuGet : Json.NET Microsoft ASP.NET Web API 2 Client Microsoft HTTP Client Libraries Here is the C# code: using System; using System.Collections.Generic; using System.Linq; using System.Net.Http; using System.Net.Http.Headers; using System.Text; ...