Skip to content

Commit 9436916

Browse files
authored
ci: automated jira issue creation workflow (#377)
* ci: automated jira issue creation workflow * description
1 parent cf7afd9 commit 9436916

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Creates jira tickets for new github issues to help triage
2+
name: Jira Issue Creator
3+
4+
on:
5+
issues:
6+
types: [opened]
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-18.04
11+
environment: Jira
12+
name: SDK Bot Jira Issue Creation
13+
steps:
14+
- name: Login
15+
uses: atlassian/gajira-login@master
16+
env:
17+
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
18+
JIRA_USER_EMAIL: ${{ secrets.JIRA_USER_EMAIL }}
19+
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
20+
21+
- name: Create issue
22+
id: create
23+
uses: atlassian/gajira-create@master
24+
with:
25+
project: ${{ secrets.JIRA_PROJECT }}
26+
issuetype: Task
27+
summary: |
28+
[SDK - JS] ${{ github.event.issue.title }}
29+
description: |
30+
${{ github.event.issue.url}}
31+
fields: '{"customfield_10006": 1039, "customfield_11481": {"value": "Data Management"}, "customfield_11200":
32+
{"value": "SDK"}}' # sprint, pillar, pod
33+
34+
- name: Log created issue
35+
run: echo "Issue AMP-${{ steps.create.outputs.issue }} was created"

0 commit comments

Comments
 (0)