Azure DevOps show/hide fields depending on conditions - azure-devops

Is is possible to make a custom rule in Azure DevOps that either shows or hides a field in a work item depending on a condition?
For example:
Condition 1: When a work item is created
Action 1: Hide field X
Condition 2: When work item state changes from Active to Resolved
Action 2: Show field X
I hope someone can help :-)

For Azure DevOps, we can only Create and manage inherited processes to customize the fields/rules.
To hide fields/groups, for some of the existing fields/groups (default fields/groups) we can directly hide them from the layout. For customized fields we can only remove them from the layout.
What you need, there is no such build-in option to achieve.
You could submit a user voice here: Azure DevOps Feature Request

Related

Azure DevOps Work item custom field as checkbox

I am setting up Azure DevOps to track Features and other work items. One of the things I want to track is what environment bug was found in.
My preference is to have a list of checkboxes user can check/uncheck.
I have not found any way to do this using default setup or the Marketplace.
Anybody who can help me out?
To use checkboxes, you can try the extension Multivalue control. Follow below steps to do that:
Install the extension Multivalue control
Navigate to the specific inherited process, select the work item
type (Task in this sample). Add a new field (BugType with Text (single line) in this sample, you can also create a picklist field
based on your requirements).
New group (BugType in this sample)
Add a custom control to Task, select the Multivalue control from
the control list.
In Options select the field created in step2, and enter the bug
type you want to set (e.g Dev;Test;Pord). OK to save the
configuration.
Open a Task work item to verify the checkboxes.
You can add a Boolean field:
Then you can use checkboxes:

Getting percentage of completion of child and related work items of features in Azure DevOps

I am trying to get the percentage of completion of a feature based on the child work items related to the feature.
I am very new to azure devops and I have no idea where to start.
For example if I have feature with 5 related child work items, as each work item is closed, I want the percentage of items closed to be captured on the feature
Is there a way to get this?
You need to create a rollup column to see the progress bar and count of your feature.
Please refer mentioned link for more details. https://devblogs.microsoft.com/devops/track-the-progress-of-work-using-rollup-columns/

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.

Add or modify workflow Reasons in Devops Azure Workitems

Presently I am using Devops Azure (Cloud).
For Work items is there a way to add and modify workflow Reasons.
State and Reason change
I am looking to add some custom reasons in the work item for each State.
Is there a way to change these. From the help, its mentioned, "You can add and remove workflow States. However, you can't add or modify workflow Reasons.". Any pointers to do this.
I am looking to add some custom reasons in the work item for each State.
I am afraid there is no such way to add some custom reasons in the work item for each State.
Although we can use custom fields and custom rules, it can only achieve one state for one reason.
That because Azure devops not allowed to have multiple rules with the same action type using the same conditions:
And on the other hand, we also could not add a list as value of Picklist items:
So, I do not believe we could add some custom reasonS in the work item for each State at this moment.
You could add your request for adding a list as value of Picklist items on our UserVoice site (https://developercommunity.visualstudio.com/content/idea/post.html?space=21 ), which is our main forum for product suggestions. Thank you for helping us build a better Azure DevOps.
Hope this helps.
There is no any news here. As workaround, you can:
Add a new custom field with a pick list with reasons and mark it as required. Add a picklist.
Use rules to set default values into your new field for each state transitions. Add a rule to a work item type.

Child work types inheriting field values from parent item

I am working through creating a custom process in Azure DevOps and was curious if field values from parent can be shared with child items.
Here is an example:
Create field 'Custom Field 9' on Epic work type
Create the same field 'Custom Field 9' on Product Backlog Item work type
Create an epic and fill in the value of 'Custom Field 9'
Create a child Product Backlog Item, 'Custom Field 9' is then inherited to the backlog items field.
What I've tried so far is to use a rule on either Epic or Product Backlog Item, however, I do not believe the rules can apply to creation of children processes.
One other option I'm going to try later today is a Flow that detects when a child work item is created and perform it automatically. I'd like to try to keep this contained to Azure DevOps if possible.
Edit: Thought it helpful to mention that we are using the hosted solution of DevOps and nothing on premise.
Sorry to say that as default, there does not such a work item features with "out of the box". But you can use another tool to achieve this.
Like you said, Microsoft Flow, there does not such feature supported while connect with Azure Devops.
But, in addiiton, I think you can do this with writing some custom scripts. And then configure Web hook to trigger this custom events.
Also, here has another tool named TFS Aggregator (Web Service) to achieve what you want. You can set and configure apply certain rules (such as copying fields from a parent item to a child item). And it will trigger after a work item is created or saved.
I know this is very inconvenient, here has an same feature suggest which raised by others. They has the same demand with you. You can vote and comment for this suggestion. When there are enough communities vote and add comments for this feedback, the product team member will take this feedback seriously.
I needed this feature as well, but in it's absence I have got it to work (relatively easily) with an Azure Logic App (for anyone also using Azure)
​Trigger
When a work item is created
Then
​Get work item details using "Parent" as the work item ID to search for
​Finally
​Update the new work item with any field from the parent you require
​
​