Forums

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

MS Flows - Create a new Issue

Stefano Veronese January 9, 2020

Hello, I succesfully established a connection between MS Flows and Jira, but when I try to use the action Create an Issue, I am getting back this error message:

 

{ "errorMessages": [], "errors": { "rankBeforeIssue": "expected Object" }}

 

Any suggestion would be really appreciated, thanks.

1 answer

1 accepted

0 votes
Answer accepted
Hana Kučerová
Community Champion
January 9, 2020

Hi @Stefano Veronese ,

according to this article it looks like there is some problem with custom fields - could it be, that you are sending data for some custom field with type Rank in your create issue request?

Stefano Veronese January 22, 2020

Thanks Hana - indeed, the issue contains some custom fields which cannot be used using the Jira action available in MS Flows.

To overcome this block I used an HTTP connection module (available in Flows) and I was able to create an Issue.

Richard Roper
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 19, 2020

Hi @Stefano Veronese - I am facing a similar problem, can you share how you solved this with the HTTP connection please?

Stefano Veronese May 19, 2020

Hi @Richard Roper ,

I used:

Method: Post

URIhttps://YOURDOMAIN.atlassian.net/rest/api/3/issue?

Body:

I created the Body in Postman first, in order to test it with my custom fields. The results was something like this:

{
"update": {},
"fields": {
"summary": "VALUE FROM MS FLOW",
"assignee": {
"id": "VALUE FROM MS FLOW"
},
"project": {
"id": "ID OF YOUR PROJECT"
},
"issuetype": {
"id": "ID OF YOUR ISSUE TYPE"
},
"customfield_10080": "VALUE FROM MS FLOW",
"customfield_10008": "VALUE FROM MS FLOW",
"description": {
"version": 1,
"type": "doc",
"content": [
{
"type": "paragraph",
"content": [
{
"type": "text",
"text": "VALUE FROM MS FLOW"
}
]
}
]
}
}
}

Authentication: Basic

Username: your email address

Password: the password that you can generate via https://id.atlassian.com/manage/api-tokens

Richard Roper
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 20, 2020

Thanks Stefan - any chance you could post an image of your set-up in MS FLOW?

Stefano Veronese May 20, 2020

2020-05-20 17_31_14-Window.png

Like Sally Sproat likes this

Suggest an answer

Log in or Sign up to answer