Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 1.02 KB

README.md

File metadata and controls

25 lines (16 loc) · 1.02 KB

JIRA

Repository for JIRA related stuff

webhook.py

webhook.py is python script runs as a webserver on a port and accepts json data and does the following

  • If triggered by approving access request type in JSD, invite the user to project, add user to appropriate groups & organization and resolve the ticket
  • If triggered manually inviting customers, add the customers to appropriate groups & organization.

Requirement

Python library for interacting with JIRA via REST APIs. https://pypi.python.org/pypi/jira/

Webhook needs to be defined in JSD: https://developer.atlassian.com/jiradev/jira-apis/webhooks Also see defining webhook as a post function to workflow: https://developer.atlassian.com/jiradev/jira-apis/webhooks#Webhooks-Addingawebhookasapostfunctiontoaworkflow

This implements the following feature requests.

  1. https://jira.atlassian.com/browse/JSDSERVER-4519
  2. https://jira.atlassian.com/browse/JSDSERVER-2073

Running

./webhook.py

This by no means is perfect. Any changes and improvements are welcome.