Skip to content

Commit 35fdce7

Browse files
committed
Fix the workflow
1 parent e96cdf5 commit 35fdce7

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

.github/workflows/jira-integration.yml

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,22 @@ jobs:
1010
if: contains(github.event.label.name, 'bug') # Trigger only when the 'bug' label is added
1111
runs-on: ubuntu-latest
1212
steps:
13+
- name: Login to Jira
14+
uses: atlassian/gajira-login@v3
15+
env:
16+
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }} # The base URL of your Jira instance
17+
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }} # The email associated with your Jira user
18+
JIRA_API_TOKEN: ${{ secrets.JIRA_TOKEN }} # The API token for Jira
19+
1320
- name: Create Jira Issue
14-
uses: atlassian/gajira-create@v3.1.0
21+
uses: atlassian/gajira-create@v3
1522
with:
16-
jira-base-url: ${{ secrets.JIRA_BASE_URL }}
17-
jira-user-email: ${{ secrets.JIRA_USER_EMAIL }}
18-
jira-api-token: ${{ secrets.JIRA_TOKEN }}
19-
project-key: JGI
20-
summary: "Bug: ${{ github.event.issue.title }}"
23+
project: JGI # The Jira project key where the issue should be created
24+
issuetype: Bug # The type of issue to create
25+
summary: ${{ github.event.issue.title }} # The title of the issue from GitHub
2126
description: |
22-
Reporter: ${{ github.actor }}
27+
**Reporter:** ${{ github.actor }}
2328
24-
Issue URL: ${{ github.event.issue.html_url }}
29+
**Issue URL:** ${{ github.event.issue.html_url }}
2530
26-
Description:
27-
${{ github.event.issue.body }}
28-
issue-type: Bug
29-
assignee: ${{ github.actor }}
31+
**Description:** ${{ github.event.issue.body }}

0 commit comments

Comments
 (0)