-
Notifications
You must be signed in to change notification settings - Fork 135
41 lines (37 loc) · 1.17 KB
/
create-jira.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Create Jira Ticket
on:
issues:
types:
- opened
jobs:
create_jira:
name: Create Jira Ticket
runs-on: ubuntu-latest
environment: IssueTracker
steps:
- name: Checkout
uses: actions/checkout@master
- name: Login
uses: atlassian/gajira-login@master
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
JIRA_API_TOKEN: ${{ secrets.JIRA_TOKEN }}
- name: Create
id: create
uses: atlassian/gajira-create@master
with:
project: LIBRARIES
issuetype: Bug
summary: |
[${{ github.event.repository.name }}] (${{ github.event.issue.number }}): ${{ github.event.issue.title }}
description: |
Github Link: ${{ github.event.issue.html_url }}
${{ github.event.issue.body }}
# Parent and Epic Link fields (set to same)
fields: '{
"parent": {"key": "LIBRARIES-1963"},
"customfield_10002": "LIBRARIES-1963"
}'
- name: Log created issue
run: echo "Issue ${{ steps.create.outputs.issue }} was created"