Jira access Pin notification process overview

Access Technical Solution

  1. Create a project,
    • Git create a project, write an accessible interface (logic can be added later), find the operation and maintenance configuration instructions cause and result, deploy your code to the server.
  2. Create webHook
    • Find someone who has administrative rights to create a webHook and provide configuration information, documentation

{"name": "my first webhook via rest", // name" url": "Http://www.example.com/webhooks", / / the server address: http://www.example.com, interface address: Webhooks (can be changed later), which trigger our interface when jIRA generates create and update and flow states and enter our processing logic "events": "Jira :issue_created", // create "jira:issue_created", "filters": {"issue-related events-section": "Project = JRA AND resolution = Fixed" // filter information}, "excludeBody" : False // Whether no callback information is required (hook callback, which contains relevant information, true is not required information)}Copy the code

Code logic

  1. Obtain the Access_token through the enterprise internal application interface

  1. Ask the hr department to get the phone number of the company employee and get the userId through the pin API- phone number

  1. Send work notifications based on status (create, change, close, reopen, etc.)