Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

PowerAutomate - Jira

denise December 5, 2023

I am trying to create a flow with Power Automate that creates a Jira ticket with Forms.
Now I always get the error message: {
"errorMessages": [],
"errors": {
"Attachment": "Field 'Attachment' cannot be set. It is not on the appropriate screen, or unknown."
}

So I only have the problem with attachments, the other fields work

{
"fields": {
"project": {
"id": "13901"
},
"summary": "Thema: @{outputs('Antwortdetails_abrufen')?['body/r7f1245fdc0eb4ecca6aacb3429709385']}",
"description": "Name: @{outputs('Antwortdetails_abrufen')?['body/responder']}\n\nAnforderung: @{outputs('Antwortdetails_abrufen')?['body/r6a27bcb9976f4d728228d47b95a6a75f']}",
"Attachment": "@{outputs('Antwortdetails_abrufen')?['body/rf2c65f6d895241adb2e2f167c9a50e40']}",
"issuetype": {
"id": "10002"
}
}
}

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 5, 2023

Hi @denise 

Welcome to the community.

This error or similar occurs when a field is not available on the create screen used in the project. A project can have multiple create screens as each issue type can have its own create screen.

This based on the screen schemes and issue type screen schemes used on a project

denise December 5, 2023

But I have the field in the creat screen

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 5, 2023

Hi @denise 

I did some quick research.

Creating an issue required posting JSON payload. Adding an attachment required posting a MultiPartMime. Both the same time is not possible at the moment.

When creating the issue, you get the new issue key returned in the JSON response. Then posting the attachment is as simple as described in the api documentation on adding attachment.

Suggest an answer

Log in or Sign up to answer