Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

MS Flows - Create a new Issue

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 Leader Jan 09, 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?

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.

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

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

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

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Software

How to create Jira issus from Excel file?

When to use CSV importer When managing your processes in Jira, there are many occasions where you need to create a lot of tasks. Creating them one by one will cost you a lot of time and effort and i...

4,367 views 22 32
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you