To get workitem ID in c# MVC code
![]() after creating the workitem, i am able to know the workitem ID in the ALM , where can i write code in c# code to knw the number when it is created using MVC C#
|
One answer
![]()
Ralph Schoon (63.3k●3●36●46)
| answered Jan 31 '20, 5:51 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER What data you get is described in the API description of the API you use. If you use some web API to create a work item, e.g. a POST you would get a response header and body back. The body would contain the information you need to get the item (or even the item). Either the ID is there or you need to GET the item and all its properties and find it in there.
Comments
i am creating the workitem through cURL command running the batch file from C# code , i have developed web application using MVC5 architecture , where my code contains execute method where i am passing the parameters like batch file, user , password, and file
where to get the ID ? i want to display the Workitem Number in the web page
i have used REST API to get the data
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.