Minor Enhancements

This commit is contained in:
Zimmerberger Markus
2024-06-26 13:26:05 +02:00
parent e5189f0d8c
commit 7ac6594292
2 changed files with 19 additions and 10 deletions
+6 -3
View File
@@ -43,7 +43,10 @@ def get_assignee(type, issue):
elif type == 'Dev Citizen-Frontend':
return 'reu9001'
elif type.startswith('Test-Anpassung'):
return 'osm9005'
if issue.key.startswith('WRGWR-'):
return 'ada9001'
else:
return 'osm9005'
def create_subtask(issue, parent, type, subtask_sp, estimation_remark):
escaped = issue.fields.summary.replace('"', r'\"')
@@ -110,8 +113,8 @@ headers["Authorization"] = f"Bearer {pat}"
jira_server = JIRA(server=host, options={"headers": headers})
# use filter or single issue
#issues_Jql = jira_server.search_issues('filter=25827') #, expand='changelog')
issues_Jql = jira_server.search_issues('key in (WRGWR-2932)') #, expand='changelog')
issues_Jql = jira_server.search_issues('filter=25827') #, expand='changelog')
#issues_Jql = jira_server.search_issues('key in (WRGWR-2932)') #, expand='changelog')
#issues_Jql = jira_server.search_issues('labels in (Refinement11012022) AND type not in (Bug) AND status not in (Done) and ("Story Points" is EMPTY or "Story Points" = 0)') #, expand='changelog')
logging.info(f'Creating sub-tasks out of estimation of pre-planning of {date.today()}')