I’ve already configured my Jira instance as the following: Now let’s build the body of the request using JSON format to create a ticket. On the right side you will see a brief description of the API, the parameter options and the HTTP method that should be used to perform the request successfully.įor this example, you don’t have to provide any parameters or the HTTP method you should use to create the issue is POST method. To get the correct API resource, you need to use either the API browser of the Atlassian Developer Toolbox app or Atlassian documentation Jira REST API documentation.Īs seen in the screenshot above when typing the word create, we automatically highlight the API to perform the action. You will have to click on the Drop access link in the information message for the search APIs bar shown below to appear.įirstly you will need to define the action you are trying to perform – for example create a ticket, attach a file, add a user or get the information of specific custom field.įor this tutorial we will try to create a ticket using REST. After installing the app, go to Systems > Advanced Section > REST API Browser , and you should see the below: Atlassian REST API BrowserĪtlassian REST API Browser provides a browser for available Jira REST resources. With these resources you can create, update, edit and delete data in Jira using standard HTTP methodslike GET, PUT, POST and DELETE. Jira provides a wide range of REST API resources that helps developers create communication between Jira and other applications. Earlier this year, Atlassian developers announced a new module and REST APIs interface that is described as more straightforward to implement and maintain. REST (Representational State Transfer) is an architectural style and approach to communications that is often used in the development of web services. It is the mostly widely used API paradigm on the web and now it is frequently used to connect applications to the Cloud. So let’s take brief look into Jira REST API. At Valiantys, we use Jira REST API to execute repetitive tasks like creating issues with attachments in bulk, or when developing apps for Jira. We have also seen some of our clients use REST API to create a specific report or to sync Jira issues with other systems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |