Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

phi-labs-ltd/github-action-issue-to-jira

Repository files navigation

Issue To Jira

This GitHub Action will create a Jira ticket whenever a new GitHub Issue is raised. Any comments on the issue will be posted to the Jira ticket as comments and any labels applied/removed will be synced

Please check the open issues and add a comment if any of the feature requests would be useful for you.

Usage

Create a file containing the following at .github/workflows/jira.yml:

name: Jira Sync
on:
  issues:
    types: [opened, labeled, unlabeled]
  issue_comment:
    types: [created]
jobs:
  sync:
    name: Sync Items
    runs-on: ubuntu-latest
    steps:
      - name: Sync
        uses: phi-labs-ltd/github-action-issue-to-jira        
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        with:
          jiraHost: ${{ secrets.JIRA_HOST }} # The domain only; do not include the protocol.
          jiraUsername: ${{ secrets.JIRA_USERNAME }}
          jiraPassword: ${{ secrets.JIRA_PASSWORD }} # See https://id.atlassian.com/manage/api-tokens
          project: PROJECTKEY