Skip to content

Deleted projects still appear in the recent list. #489

Deleted projects still appear in the recent list.

Deleted projects still appear in the recent list. #489

Workflow file for this run

name: Create Jira Ticket on New Issue
on:
# This workflow runs whenever a new issue is opened.
issues:
types: [opened]
jobs:
create_jira_ticket:
# Use the latest stable Ubuntu runner environment.
runs-on: ubuntu-latest
# Needed so the write-back step can comment on the originating issue.
permissions:
issues: write
# We use a third-party action, so we must first authenticate to Jira.
steps:
- name: Login to Jira
uses: atlassian/gajira-login@v3
env:
JIRA_BASE_URL: 'https://appdevforall.atlassian.net'
JIRA_USER_EMAIL: ${{ secrets.JIRA_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
- name: Create Jira Issue
id: create
uses: atlassian/gajira-create@v3
with:
project: 'ADFA'
issuetype: 'Story'
summary: 'GHI: ${{ github.event.issue.title }}'
description: |
*GitHub Issue:* #${{ github.event.issue.number }}
*URL:* ${{ github.event.issue.html_url }}
---
${{ github.event.issue.body }}
- name: Log created issue
run: echo "Issue ${{ steps.create.outputs.issue }} was created"
- name: Comment Jira link on GitHub issue
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh issue comment "${{ github.event.issue.number }}" \
--repo "${{ github.repository }}" \
--body "Tracked in Jira: [${{ steps.create.outputs.issue }}](https://appdevforall.atlassian.net/browse/${{ steps.create.outputs.issue }})"