Skip to content

ahmedsajid/JIRA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

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.

Releases

No releases published

Packages

No packages published

Languages