Body: <p>I'm looking for a possibility to create a task and attach it to a backlog-item from the release pipeline in Microsofts TFS/VSTS. So far I couldn't find anything that would make this possible. Has anyone an idea how to accomplish this?</p>
  
Comments: CC BY-SA 4.0
Comments: 2019-12-23T10:00:59.637Z
Comments: Could you add the log? Without it, it will be hard to answer the question. Please edit the Q&A and let us know when it can be reviewed. In the mean time the question will be closed.
Comments: 030
Comments: CC BY-SA 4.0
Comments: 2018-09-06T13:41:15.980Z
Comments: To be clear, you want to create a Work item task, and parent it in the backlog automatically from the release pipeline.  When would this be triggered and to what parent?  When would these parameters be set?  I know you can automatically create a bug on failed builds
Comments: xtreampb
Comments: CC BY-SA 4.0
Comments: 2018-09-06T13:51:45.850Z
Comments: @xtreampb yes, that pretty much sums it up. The parent workitem would always be the same, but I would not care if I had to create one automatically as well. When it gets triggered doesn't matter that much as long as it can be done somewhere in the build pipeline. I guess if it possible, it would work anywhere in the pipeline
Comments: Gistiv
Comments: CC BY-SA 4.0
Comments: 2018-09-16T21:04:28.127Z
Comments: the easy part is to create the workitems (there are APIs and SDKs for this) but how you hand the parent work item to the pipeline? Pipelines cannot have parameters so you need an external service to query or a pseudo-artifact file listing the Id.
Comments: Giulio Vian
Tags: <automation><release-management><azure-devops><tfs><azure-pipelines>
Title: Creating a task for a backlog item automated in the release pipeline of VSTS
UserDisplayName: Gistiv
ThreadText: # Creating a task for a backlog item automated in the release pipeline of VSTS
  
  (Asked by: username_0 on 2018-09-06)
  
  I'm looking for a possibility to create a task and attach it to a backlog-item from the release pipeline in Microsofts TFS/VSTS. So far I couldn't find anything that would make this possible. Has anyone an idea how to accomplish this?
  
  **Tags:** automation, release-management, azure-devops, tfs, azure-pipelines
  
  > **Comments:**
  > **username_2**: To be clear, you want to create a Work item task, and parent it in the backlog automatically from the release pipeline.  When would this be triggered and to what parent?  When would these parameters be set?  I know you can automatically create a bug on failed builds  
  > **username_0**: @username_2 yes, that pretty much sums it up. The parent workitem would always be the same, but I would not care if I had to create one automatically as well. When it gets triggered doesn't matter that much as long as it can be done somewhere in the build pipeline. I guess if it possible, it would work anywhere in the pipeline  
  > **username_3**: the easy part is to create the workitems (there are APIs and SDKs for this) but how you hand the parent work item to the pipeline? Pipelines cannot have parameters so you need an external service to query or a pseudo-artifact file listing the Id.  
  > **username_1**: Could you add the log? Without it, it will be hard to answer the question. Please edit the Q&A and let us know when it can be reviewed. In the mean time the question will be closed.  
  
  ---
  
  ## 0 answers
  
  