1
- #!/usr/bin/env python
1
+ #!/usr/bin/env python2
2
2
# -*- coding: utf-8 -*-
3
- PROG_VERSION = u"Time-stamp: <2016-05-13 14:00:47 karl.voit>"
3
+ PROG_VERSION = u"Time-stamp: <2017-04-10 17:50:01 karl.voit>"
4
4
5
5
import sys
6
6
import os
@@ -89,7 +89,7 @@ def thing2string(data, addlink=False):
89
89
def orglink (text ):
90
90
"Takes a text like 'IPD-1234' and generates an Org-mode link"
91
91
92
- return '[[' + text .replace ('IPD-' , 'https://product .infonova.at/jira /browse/IPD-' ) + '][' + text .replace ('IPD-' , '' ) + ']]'
92
+ return '[[' + text .replace ('IPD-' , 'https://r6portal-defects .infonova.com /browse/IPD-' ) + '][' + text .replace ('IPD-' , '' ) + ']]'
93
93
94
94
95
95
def get (issues , ipd , query ):
@@ -154,7 +154,7 @@ def retrieve_data_from_jira(ipds):
154
154
print_line ("ERROR: Could not find Python module \" JIRA\" .\n Please install it, e.g., with \" sudo pip install jira\" ." )
155
155
sys .exit (12 )
156
156
157
- jira = JIRA ('https://product .infonova.at/jira /' , basic_auth = (jiraconfig .JIRA_USER , jiraconfig .JIRA_PASSWORD ))
157
+ jira = JIRA ('https://r6portal-defects .infonova.com /' , basic_auth = (jiraconfig .JIRA_USER , jiraconfig .JIRA_PASSWORD ))
158
158
159
159
query = 'key = "IPD-' + '" or key = "IPD-' .join (ipds ) + '" ORDER BY key'
160
160
queryissues = jira .search_issues (query )
@@ -198,37 +198,36 @@ def print_issue(issue):
198
198
:ID: ''' + orgdate + '''-Story-''' + short )
199
199
print_line (u''':END:
200
200
201
- | *IPD* | *Confluence* | *Champ* |''' )
201
+ | *IPD* | *Confluence* | *Champ* |''' )
202
202
203
203
if issue ['''assignee''' ]:
204
- champ = issue ['''assignee''' ]
204
+ champ = '@' + issue ['''assignee''' ]
205
205
else :
206
- champ = '''- '''
206
+ champ = '''@champ '''
207
207
208
208
print_line (u''' | [[IPD:''' + issue ['''key''' ] + '''][''' + issue ['''key''' ] + ''']] | ''' + \
209
209
issue ['''summary''' ] + ''' | ''' + champ + ''' |
210
210
211
- *** STARTED create Jira [[IPD:%s]]''' % issue ['''key''' ])
211
+ *** DONE create Jira [[IPD:%s]] :USprep: ''' % issue ['''key''' ])
212
212
print_line (u''':PROPERTIES:
213
213
:CREATED: [''' + orgtime + ''']
214
214
:ID: ''' + orgdate + '''-''' + short + '''-create-jira-ipd
215
215
:BLOCKER:
216
- :TRIGGER: ''' + orgdate + '''-''' + short + '''-define-champ(NEXT) ''' + \
217
- orgdate + '''-''' + short + '''-estimation(NEXT)
216
+ :TRIGGER:
218
217
:END:
219
218
220
219
- fill out:
221
220
- [X] set reporter
222
221
- [ ] set level red
223
222
- [ ] fixVersion
224
223
225
- *** NEXT create Confluence page with template
224
+ *** NEXT create Confluence page with template :USprep:
226
225
SCHEDULED: <''' + orgdate + '''>
227
226
:PROPERTIES:
228
227
:CREATED: [''' + orgtime + ''']
229
228
:ID: ''' + orgdate + '''-''' + short + '''-create-confluence-page
230
229
:BLOCKER:
231
- :TRIGGER: ''' + orgdate + '''-''' + short + '''-write-acceptance-criteria(NEXT)
230
+ :TRIGGER: ''' + orgdate + '''-''' + short + '''-write-acceptance-criteria(NEXT) ''' + orgdate + '''-''' + short + '''-DoR(NEXT)
232
231
:END:
233
232
234
233
- fill out:
@@ -238,16 +237,48 @@ def print_issue(issue):
238
237
- [ ] Business Value
239
238
- [ ] add Confluence-short-URL to story table above
240
239
241
- *** TODO write Acceptance Criteria, Docu, Perms
240
+ *** NEXT DoR checklist written :USprep:
241
+ SCHEDULED: <''' + orgdate + '''>
242
+ :PROPERTIES:
243
+ :CREATED: [''' + orgtime + ''']
244
+ :ID: ''' + orgdate + '''-''' + short + '''-DoR-checklist-written
245
+ :BLOCKER:
246
+ :TRIGGER:
247
+ :END:
248
+
249
+ *** TODO write Acceptance Criteria :USprep:
242
250
:PROPERTIES:
243
251
:CREATED: [''' + orgtime + ''']
244
252
:ID: ''' + orgdate + '''-''' + short + '''-write-acceptance-criteria
245
253
:BLOCKER: ''' + orgdate + '''-''' + short + '''-create-confluence-page
246
254
:TRIGGER: ''' + orgdate + '''-''' + short + '''-confidence-green(NEXT) ''' + \
247
- orgdate + '''-''' + short + '''-hand-over-team(NEXT)
255
+ orgdate + '''-''' + short + '''-hand-over-team(NEXT) ''' + \
256
+ orgdate + '''-''' + short + '''-story-signoff(NEXT)
257
+ :END:
258
+
259
+ *** DoR :@underscore:
260
+ :PROPERTIES:
261
+ :CREATED: [''' + orgtime + ''']
262
+ :ID: ''' + orgdate + '''-''' + short + '''-DoR
263
+ :CATEGORY: refinement
264
+ :BLOCKER: ''' + orgdate + '''-''' + short + '''-create-confluence-page
265
+ :TRIGGER:
266
+ :END:
267
+
268
+ - [ ] Acceptance criteria OK
269
+ - [ ] Assumptions & constraints checked
270
+ - [ ] External & internal dependencies checked
271
+ - [ ] Define impact on testing
272
+ - [ ] Impacted Documentation check
273
+
274
+ *** PM Signoff :USprep:
275
+ :PROPERTIES:
276
+ :CREATED: [''' + orgtime + ''']
277
+ :ID: ''' + orgdate + '''-''' + short + '''-story-signoff
278
+ :BLOCKER: ''' + orgdate + '''-''' + short + '''-write-acceptance-criteria
248
279
:END:
249
280
250
- *** TODO add Champ to Confluence and Jira :refinement:
281
+ *** NEXT add Champ to Confluence and Jira :@underscore:''' + champ + '''
251
282
:PROPERTIES:
252
283
:CATEGORY: refinement
253
284
:CREATED: [''' + orgtime + ''']
@@ -256,7 +287,7 @@ def print_issue(issue):
256
287
:END:
257
288
258
289
*** TODO get Estimation on [[IPD:''' + issue ['''key''' ] + \
259
- ''']] :refinement :
290
+ ''']] :@underscore :
260
291
:PROPERTIES:
261
292
:CREATED: [''' + orgtime + ''']
262
293
:CATEGORY: refinement
@@ -268,7 +299,7 @@ def print_issue(issue):
268
299
- Estimation:
269
300
270
301
*** TODO get confidence-level green on [[IPD:''' + issue ['''key''' ] + \
271
- ''']] :refinement :
302
+ ''']] :@underscore :
272
303
:PROPERTIES:
273
304
:CATEGORY: refinement
274
305
:CREATED: [''' + orgtime + ''']
@@ -282,20 +313,26 @@ def print_issue(issue):
282
313
:PROPERTIES:
283
314
:CREATED: [''' + orgtime + ''']
284
315
:BLOCKER: ''' + orgdate + '''-''' + short + '''-write-acceptance-criteria ''' + \
285
- orgdate + '''-''' + short + '''-estimation
316
+ orgdate + '''-''' + short + '''-estimation ''' + orgdate + '''-''' + short + '''-DoR
286
317
:ID: ''' + orgdate + '''-''' + short + '''-hand-over-team
287
318
:TRIGGER: ''' + orgdate + '''-''' + short + '''-accept(WAITING) ''' + \
288
319
orgdate + '''-Story-''' + short + '''(TEAM)
289
320
:END:
290
321
291
- *** acceptance + finish US
322
+ *** acceptance :@underscore:
292
323
:PROPERTIES:
293
324
:CREATED: [''' + orgtime + ''']
294
325
:ID: ''' + orgdate + '''-''' + short + '''-accept
295
326
:BLOCKER: ''' + orgdate + '''-''' + short + '''-hand-over-team
296
- :TRIGGER: ''' + orgdate + '''-Story-''' + short + '''(DONE)
297
327
:END:
298
- ''' )
328
+
329
+ *** close US
330
+ :PROPERTIES:
331
+ :CREATED: [''' + orgtime + ''']
332
+ :ID: ''' + orgdate + '''-''' + short + '''-close
333
+ :BLOCKER: ''' + orgdate + '''-''' + short + '''-accept
334
+ :TRIGGER: ''' + orgdate + '''-Story-''' + short + '''(DONE)
335
+ :END:''' )
299
336
300
337
301
338
def main ():
0 commit comments