web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Creating Azure DevOps ...
Power Automate
Unanswered

Creating Azure DevOps Work Items from SharePoint List Items

(0) ShareShare
ReportReport
Posted on by 35

Hi guys,

 

I would like to create a flow that automatically generates a work item on Azure DevOps using elements from a SharePoint list. In SharePoint, I've set up a list with columns such as ID, issue title, description, status, priority, created date, and logged by. While the flow successfully handles fields like title, description, and date, it encounters issues with columns like status, priority, and logged, where users can select options like high, low, or normal.

The problem arises because the runtime expects these values to be converted into integers or int32. How can I resolve this and ensure the flow works smoothly?

 

If anyone could provide hints or screenshots illustrating the solution, it would be greatly appreciated!  😄

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @BlackMamba,

     

    What type of columns did you use for priority and status in your list? Single line of text?

     

    typecolumn.png

     

    In that case you could use an int function to convert the value to a number.

    int(triggerOutputs()?['body/Priority'])

     

    Below is an example of that approach.

     

    priority_devops.png

  • BlackMamba Profile Picture
    35 on at

    Hi @Expiscornovus !

     

    I have used a column with a choice type, so the user can choose from 4 options: critical, high, normal, low. 


    I would like it to work in such a way that after selecting, for example, the critical option in priority in sharepoint, the corresponding number in azure would appear - that is, 1.

     

  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @BlackMamba,

     

    In that case you might be able to use the priority/id property of your choice field. That id field does starts counting with 0 instead of 1. So, you would have to add 1 to it to be able to use it in the priority field of a Azure DevOps work item.

     

    Try something like below.

     

    1. This sample assumes you have the below order in your choice field.

     

    priority_field.png

     

    2. When you trigger the flow you can see in the outputs that each choice corresponds with a number as well, the id field.

     

    priority_id.png

     

    3. You can reuse that id field in your Priority field of the work item creation. Only gotcha is that you need to add 1 because the DevOps priority list does not start at 0 but at 1, unlike SharePoint choice values.

    add(triggerOutputs()?['body/Priority/Id'],1)

     

    add_to_id.png

  • BlackMamba Profile Picture
    35 on at

    @Expiscornovus 

     

    Thank you so much! That totally solved my problem. But I have one more question. I created two columns, first one (associated files)- where the user can add an attachment and another one (images) to upload image to the sharepoint list element. How do I connect this to azure so that these files automatically appear there?

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @BlackMamba,

     

    For that part you would have to collect the attachment content and use a couple of HTTP requests to upload it and relate it to a work item in DevOps. 

     

    @abm, has a nice video about this approach, https://www.youtube.com/watch?v=Ivdj6Gf_K-M That video uses email attachments as a source, but you could use the same HTTP request approach for SharePoint attachments.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard