apply WebServices into VSTS on modified field - azure-devops

I have a question regarding VSTS,
Let's assume that I have a requirement which says when a user modifies a field in WorkItem then automatically should update an other field in external database.
I do not have experience at all with VSTS and is not clear to me yet how I can do this.
Already I created webservices in order to write to the field in the external database and then the big question is how to call this webservices each time that a field is modified.
Does someone have a suggestion or an example?

The simple way is using VSTS web hook:
Go to service hooks page (https://[account].visualstudio.com/[team project]/_apps/hub/ms.vss-servicehooks-web.manageServiceHooks-project)
Click + > Select Web Hooks > Select Work Item updated event > Specify Field and other filters > Next
Specify your web services URL and other settings (the web services need to be accessible from internet)
After that, when the specified work item updated and meet other filters (specified in web hook), it will send the request to target service with json data.

Well, first you are talking about VSTS (Cloud) not TFS (On-premises), the only option to create extension which listen to work-item update once it happen, it will call your web service
I created series of videos on how to develop VSTS extension, how to publish it and you can see it as a starting point.
http://mohamedradwan.com/2017/12/29/develop-vsts-extension-and-configure-ci-continuous-integration-and-cd-continuous-delivery-pipeline/

Related

Deploy single API of Function App in azure portal

I want to know if it is possible or not to deploy single or selected changes deployment in azure, like github provides for other projects in case of azure function app. I have made few changes and made example API. Which is also deployed. That I don't want but wants to it to keep it in my machine. And don't want to select it on deployment. I read the documentation and it says it overwrites function app. Okay. If it does. But I want for particular code only that I can select commit and publish.

Azure DevOps Query Dependencies

Using Azure DevOps Dependency Tracking plugin from Microsoft AppStore...
Story 1
I am looking for technical design details that tell me how Dependency data is written to the ADO database so that I may query those fields and relationships directly.
Story 2
As a Product Portfolio Manager, I want to create a Query to create a list of Dependencies across my entire Product portfolio so that I can drive dependency management across product teams within my portfolio.
Assumptions
I'm assuming that the plugin
a) extends existing Entities and relationships within ADO
b) creates a unique Dependency Entity within ADO.
c) Dependency data can be accessed through Odata (PowerBI, Excel ADO Add-in)
I am looking for technical design details that tell me how Dependency data is written to the ADO database so that I may query those fields and relationships directly.
Maybe you can try fiddler or other Web Debugging Proxy Tool to check the requests Dependency Tracking plugin sent to get dependencies.
Here are the detailed steps to use fiddler:
Launch your fiddler and choose “Tools” -> “Clean WinINET cache”, then go to “Tools” menu -> “Options” -> HTTPS tab -> enable “Decrypt HTTPS Traffic” ->select “…from all processes” in the dropdown list, then close the fiddler.
Launch and minimize Fiddler to tray, then send your query.
Check the requests to find out which ones you need.
Also, you can look for clues in the API references:
REST API browser for Azure DevOps.
.NET API browser for Azure DevOps.

Fetch all metadata of Salesforce

I've been trying to implement a way to download all the changes made by a particular user in salesforce using PowerShell script & create a package The changes could be anything whether it can be added or modified, Apex classes, profiles, Account, etc based on the modified by the user, component ID, timestamp, etc. below is the URL that exposes the API. The URL Does not explain any way to do this by using a script.
https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_listmetadata.htm
Does anyone know how I can implement this?
Regards,
Kramer
Salesforce orgs other than scratch orgs do not currently provide source tracking, which makes it possible to pinpoint user changes in metadata and extract only those changes. This is done by an SFDX/Metadata API client, like Salesforce DX or CumulusCI (disclaimer: I'm on the CumulusCI team).
I would not try to implement a Metadata API client in PowerShell; instead, harness one of the existing tools to do so.
Salesforce orgs other than scratch orgs don't provide source tracking at present. To identify user changes, you can either
Attempt to extract all metadata and diff it against your version control, which is considerably harder than it sounds and is implemented by a variety of commercial DevOps tools for Salesforce (GearSet, Copado, etc).
Have the user manually add components to a Change Set or Unmanaged Package, and use a Metadata API client as above to retrieve the contents of that package. (Little-known fact, a Change Set can be retrieved as a package!)
To emphasize: DevOps on Salesforce does not work like other platforms. Working on the Metadata API requires a fair amount of time investment and specialization. Harness the existing work of the Salesforce community where you can, but be aware that the task you are laying out may be rather more involved than you think and it's not necessarily something you can just throw together from off-the-shelf components.

How to customize the form of a work item type using code in Azure Devops?

Is it possible to customize a work item programmatically (through code) instead of using the UI (Process)? I want to add a button to create two specific work items, provided some conditions are fulfilled.
I tried to achieve the above requirement using UI. However, it doesn't seem to be possible.
For processes using the Inheritance model. API’s for everything you need to create and manage a process through code. This includes work item types, pages, groups, fields, states, rules, etc. Check Work Item Tracking Process APIs at the following site:
https://learn.microsoft.com/en-us/rest/api/azure/devops/?view=azure-devops-rest-5.0
For Hosted XML processes. API’s for checking to see if the process exists, importing, and exporting a Hosted XML process. Check Work Item Tracking Process Template APIs.
More details, you could refer to the following blog:
https://devblogs.microsoft.com/devops/announcing-new-rest-apis-for-process-customization/

How to query RTC builds?

We are using RTC for version control and build system.
RTC's web interface allow user to create custom queries for work items - good.
How about creating custom queries to the builds (or other RTC items maybe)?
Let's say I want to know in what builds this particular file was modified or in what builds this particular team member contributed something.
Definitely there is no web interface to do this.
Maybe some other tool? .. Something...
BTW, I didn't find it in scm.exe tool provided with eclipse.
Thanks
While there is no web GUI for building such a query, there is a REST API for querying Build Results:
See "Report REST API" (you need a -- free -- jazz.net account to access it), for com.ibm.team.build.BuildResult, that you can access as in this thread, for instance:
https://<host>:<port>/jazz/resource/itemOid/com.ibm.team.build.BuildResult/_uKcncTTuEeOy2d_WN7u_Bg