is it possible to attach a file with ansible jira module?

nkaryeli November 8, 2019

Hi,

Does anyone has any experience with attaching files with the Ansible Jira module?

I have tried the following but it returns HTTP Error 400

other operations like transition,  comment are working fine

- name: 'attachment Jira'
local_action:
module: jira
uri: "{{jira URL}}"
username: "{{ jirauser }}"
password: "{{ password_jira}}"
issue: "{{ticketnr}}"
operation: edit
args:
fields:
attachment:
filename: "output_unzip.txt"
self: "https://{{jira URL}}/rest/api/2/user?username={{ jirauser }}"

0 answers

Suggest an answer

Log in or Sign up to answer