Skip to content

Automation to sync issues from Github (using Github actions) to Jira (via Jira webhooks)

License

Notifications You must be signed in to change notification settings

cloudoperators/sync-issues-github-jira

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sync issues from GitHub to Jira

Example github workflow

name: Sync GitHub issues to Jira example
on: [issues]

concurrency:
  group: sync-issues-to-jira-${{ github.event.issue.number }}

jobs:
  sync-issues:
    name: Sync issues to Jira
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: cloudoperators/sync-issues-github-jira@main
        with:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          JIRA_URL: ${{ secrets.JIRA_URL }}
          # Provide either JIRA_USERNAME and JIRA_API_TOKEN or JIRA_AUTHORIZATION.
          JIRA_USERNAME: ${{ secrets.JIRA_USERNAME }}
          JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
          JIRA_COMPONENT: ${{ secrets.JIRA_COMPONENT }}
          JIRA_PROJECT_KEY: ${{ secrets.JIRA_PROJECT_KEY }}
          JIRA_EPIC_KEY: ${{ secrets.JIRA_EPIC_KEY }}

Alternatively, one can provide the JIRA_AUTHORIZATION which is mutually exclusive with JIRA_USERNAME and JIRA_API_TOKEN. Now all issues labeled jira will be synced to Jira.

Debug

Debug using act with the following command:

act -s JIRA_URL=https://jira.tld -s JIRA_USERNAME=user -s JIRA_API_TOKEN='pass' -s JIRA_COMPONENT=component -s JIRA_PROJECT_KEY=project -s JIRA_ISSUE_TYPE=Task -s JIRA_EPIC_KEY=epic -s JIRA_LABELS=bug -e test-issue.json issues

About

Automation to sync issues from Github (using Github actions) to Jira (via Jira webhooks)

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published