Programmatically Set Column Options in TFS 2018.2 - rest

We are creating team projects with the rest API and would like to automate the configuration the column options like in the UI. We want to configure the column and column order for all backlogs.
I can get the backlogConfiguration in TFS and VSTS using the existing APIs but it does not look like there is a POST, PATCH or PUT method to update the backlogConfiguration. Is there any other way to programmatically set these values?
We are running TFS 2018 Update 2.

No, there isn't the API to update/change the Column Options. We cannot achieve that programmatically.

Related

How to auto populate values for a drop down field in Azure Devops?

We have two fields Fix Versions and Affects Version in a bug wherein the drop down values are to be auto populated based on the tags created in Azure Repos. For ex: if there are tags v1.001.560, v1.001.561 etc and for any new tags created, the tag version should appear as a drop down value for these fields. Is there a feasible approach to achieve this? Please suggest.
In short, there is no method to meet your needs now. As a suggestion, you could submit a suggestion ticket to suggest the feature on: https://developercommunity.visualstudio.com/report?space=21&entry=suggestion. That will allow you to directly interact with the appropriate product group, and makes it more convenient for the product group to collect and categorize your suggestions.
DevOps only supports setting to specific values for your custom picklist fields. Please note custom field is used to support tracking data requirements you have that aren't met with the existing set of fields.
Besides, to realize your idea, we should auto populate tag values to the field when opening the work item. However, we also not have such a trigger even though getting the tags with Rest API.

How to customize Azure DevOps WorkItem Field Microsoft.VSTS.TCM.Steps

I'm looking for a way to add an additional column for test steps in Azure DevOps TestCase WorkItem.
It is possible to add new fields (string / select controls etc) and reorder existing fields on the test case level. But is it possible to customize the Microsoft.VSTS.TCM.Steps Field?
There is no possibility to adapt it in the test case edit view
and the field delete / edit in all fields area is deactivated too
In the self hosted azure devops server 2019 it seems to be possible over tfs power tools / wit export & import. But how to do it in the azure cloud? maybe there is a way over extensions?
It seems you are using XML process model in azure devops server 2019. But in azure devops service, you are using inherited processes model. To customize work item types in inherited processes, please refer to the following link:
https://learn.microsoft.com/en-us/azure/devops/organizations/settings/work/customize-process-wit?view=azure-devops
You can only delete the custom fields, those fields defined for system processes can not be deleted. Steps is a particular field that can not be hide. If you want to customize Steps field, you would need to create a custom work item and customize the Steps field there.

Can you add validation to VSO/VSTS Work Item fields?

I was just trying to work out if it was possible to add validation to Work Item fields in Visual Studio Online / Team Services.
My use case is i want to make some fields mandatory if a certain condition is met (e.g. if Field1 = x then Field2 cannot be blank)
There isn't any way to do this. To achieve this feature, you need to customize the process template and work item definition which is not supported by VSTS for now.
There is already a feature request for this on VSTS User Voice: Customize Process Template on Visual Studio Online and MS keeps working on this. Refer to this link for details: VSTS Process Customization futures (January 2016)

TFS 2013: Why can't I create charts for "tag" based queries?

I have a simple query that lists out workitems marked with a certain "tag." When I try to create an Area chart for this query, I get the following error:
Is this controlled by my TFS admin? If not, why aren't charts based on "tag" field supported?
There is already a feature request submitted for this on MS User Voice, refer to this link for details: Add trend chart support for tag-based queries.
By the way, this feature is available in TFS2015, you can upgrade your TFS version if you do want this feature.
I'd assume it's because tags aren't actual work item fields, but instead are metadata that can be attached to work items at any time.

IBM create automatically children work items

I work in IBM RTC (Rational Team Concert); the Project Area I own is built on the IBM Formal Project Management Process Template.
I’m looking for a mean to get work items created programmatically;
I do want when I create a Change Request work item, to allow the selection of different teams and from this attribute(s), create automatically children work items Task directly assigned to the right team/member.
How would you recommend to do so?
Although it is not a direct answer to your issue, but I guess it would help. It's more like a workaround more than a solution to your requirement.
The work around is divided into two steps:
Create a work item template from a CR with all its sub tasks included in the work item template.
Create a CR using the previously created template programmatically.
Note: This means that you'll need to create a work item template for each team.