Technique to freeze all the fields on the form or page of a work item based on certain state in Azure Devops - azure-devops

On Azure DevOps - I have created a custom work item with custom fields on the page or form of the work item layout. Now as per the process I need the system to freeze all the field updates on certain state Eg: Let's say all the actions on the work item is done then the work item state could be tagged as 'Completed' OR ' Closed' - Now here I need to know if there's any technique to freeze all the fields on the page or form at once. (One way to do it is to set the rules for all the fields BUT if there are over 50 fields on multiple pages of the work item then it may require to set 50 rules which seems to be not the right approach. Kindly suggest!

As far as I know, this should only be achieved by setting a work item rule. You don't need to set a rule for each field separately, just add multiple actions in a rule to make multiple fields read-only.

Related

style taskboard cards using their parent properties

in my sprint taskboard i want to style my tasks based on their parent PBI/bug priority and not having to set a priority for each task. is it possible?
As of this time, however, there isn't a built-in feature to set fields or styles of work items based on their parent fields or styles. Here is a feature request.
If you don't mind extra work, you can get and update fields of the work items through Rest API, and use automation tools such as Power Automate to let the script to run automatically when the a work item is created.

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.

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
​
​

Field level permission in Azure DevOps for particular users

I have a scenario in which only admins can edit few of work Item fields, not all users should be able to edit the fields but I didn't find any way in which I can do this or if the field value is set, it shouldn't be changed again.
Depending on the field, you can use Rules on the work item to make a field read only after it has been given a value.
I have found work item rules to be lacking in functionality for many of the situations I've tried to use them, but sometimes it works well enough.
If the field needs to be edited a different time you would need to hack another rule in based on some other controlling value to allow the field to be made editable again.

How to display custom fields in QuickSearch results (RequestTracker)?

If I click one of the links in the QuickSearch Box inside the main dashboard it lists all tickets correctly, the problem is that I want all my custom fields to be displayed in the quickSearch results.
I already tried setting $DefaultSearchResultFormat in the config file, but it will show the same custom fields for all searches. I have different custom fields in every queue. Is there a way to set a defaultSearchResultFormat for each queue?
I read everywhere and RT doesn't provide a way to do that for every queue. I solved by saving some searches and adding a new dashboard with those links.