Jira access Pin notification process overview
Access Technical Solution
- 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.
- 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
- Obtain the Access_token through the enterprise internal application interface
- Ask the hr department to get the phone number of the company employee and get the userId through the pin API- phone number
- Send work notifications based on status (create, change, close, reopen, etc.)