-
Notifications
You must be signed in to change notification settings - Fork 13
/
tutorial-jira-ticket-catalog-ingestion.yaml
158 lines (157 loc) · 4.23 KB
/
tutorial-jira-ticket-catalog-ingestion.yaml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
apiVersion: scaffolder.backstage.io/v1beta3
kind: Template
metadata:
name: jira-ticket
title: Create a JIRA Ticket
description: A template to create a Jira Ticket
tags:
- jira
- management
spec:
owner: [email protected]
type: service
parameters:
- title: Service Details
required:
- emailid
- jiratoken
- projectkey
- issuetype
- jiracomponentname
- issuesummary
- issuecontent
- labels
- usergroup
properties:
emailid:
title: Email ID used for Atlassain account
type: string
description: Use the email ID associated with JIRA
jiratoken:
title: Jira Access Tokens
type: string
ui:widget: password
description: Add the API access tokens created under the above mentioned email id
projectkey:
title: Jira Project Key
type: string
enum:
- ASSMT
- BUG
- BG
- BT
- CAG
- CHAOS
- CCM
- CDE
- CODE
- CDS
- CET
- CI
- CMX
- ADOPT
- CXE
- CS
- DOPS
- DR
- ECOE
- ENGX
- ENGOPS
- FFM
- AH
- HDH
- IMPENG
- IAC
- IDP
- ML
- NMSR
- OT
- PIPE
- PL
- SE
- SRM
- SEI
- SSCA
default: IDP
description: Your ticket will be created under this project
issuetype:
type: string
title: Selec your Jira component type
enum:
- Story
- Bug
- Test
- Epic
- Sub-task
- Test Plan
- Test Group
- Enhancement
- Question
- New Feature
- Task
- Spike
- UX Design
- Pipeline Action
- RCA
- Hotfix
default: Story
jiracomponentname:
type: string
title: Add the component for this issue
enum:
- Misc
- Backstage Core
- Platform
- Plugins
- Scorecards
- Flows
- Unit-Test-Failure
desciption: Component for ticket tracing eg., Misc, Backstage Core, Platform etc.
issuesummary:
title: Give a title for your ticket
type: string
issuecontent:
title: Describe the details needed in the ticket
type: string
labels:
type: string
title: Select a label for the issue
enum:
- chores
- roadmap
- tech-debt
default: roadmap
usergroup:
title: Choose an Owner for the Service
type: string
ui:field: OwnerPicker
ui:options:
allowedKinds:
- Group
# This field is hidden but needed to authenticate the request to trigger the pipeline
token:
title: Harness Token
type: string
ui:widget: password
ui:field: HarnessAuthToken
steps:
- id: trigger
name: Bootstrapping your new service
action: trigger:harness-custom-pipeline
input:
url: "https://qa.harness.io/ng/account/zEaak-FLS425IEO7OLzMUg/idp-admin/orgs/default/projects/idptestproject/pipelines/demojraapi/pipeline-studio/?storeType=INLINE"
inputset:
emailid: ${{ parameters.emailid }}
jiratoken: ${{ parameters.jiratoken }}
projectkey: ${{ parameters.projectkey }}
issuetype: ${{ parameters.issuetype }}
componentname: ${{ parameters.jiracomponentname }}
issuesummary: ${{ parameters.issuesummary }}
issuecontent: ${{ parameters.issuecontent }}
labels: ${{ parameters.labels }}
usergroup: ${{ parameters.usergroup }}
apikey: ${{ parameters.token }}
output:
links:
- title: Pipeline Details
url: ${{ steps.trigger.output.PipelineUrl }}