Add worklog functionality to jira module (#6210)

community.general#6209 Add worklog functionality to jira
This commit is contained in:
Hugo Prudente
2023-03-26 08:31:06 +01:00
committed by GitHub
parent 997761878c
commit be7f11bf39
3 changed files with 82 additions and 3 deletions

View File

@@ -67,6 +67,24 @@
that:
- assign is changed
- name: Worklog on issue
community.general.jira:
uri: '{{ server }}'
username: '{{ user }}'
password: '{{ pass }}'
issue: '{{ issue.meta.key }}'
operation: worklog
comment: Worklog
fields:
timeSpentSeconds: 1200
register: worklog
- name: assert worklog -> with comment
assert:
that:
- worklog is changed
- worklog.meta.comment == 'Worklog'
- worklog.meta.timeSpentSeconds == 1200
- name: transition -> Resolved with comment
community.general.jira:
uri: "{{ uri }}"