edtro / EdTro.AzureDevOps.Extensions.querybasedboards

Query Based Boards enables a user to visualize the result of work item queries as a board and track the dependencies.
MIT License
24 stars 2 forks source link

Feature Request: Wildcards for string values #79

Open pajoma opened 1 year ago

pajoma commented 1 year ago

Hi and thanks for this great extension. We use tags a lot for organizing our work items, and I would love to setup the swimlanes accordingly. Let's assume the following configuration:

   ....
   "swimlanes":{
      "field":"System.Tags",
      "defaultValue":"focus",
      "values":[
         {
            "value":"focus",
            "title":"Current Features"
         }, 
         {
            "value":"refactoring",
            "title":"Housekeeping tasks"
         }  
      ]
   }

The swimlanes only work as planned, if the items only have the mentioned tags (e.g. "focus"), no other values are allowed.

It would be great to either support regular expressions (aka wildcards) or support of additional operators (with "=" as default)

Wildcards example

         {
            "value":"*focus*",
            "title":"Current Features"
         }, 

Potential issue might conflicts, if both tags are present.

Complex Operators Supported Operators in DevOps for String fields are = , <> , > , < , >= , <= , =[Field], <>[Field], >[Field], <[Field], >=[Field], <=[Field], Contains, Does Not Contain, In, Not In, In Group, Not In Group, Was Ever

         {
            "value":"focus",
            "operator": "in"
            "title":"Current Features"
         }, 
edtro commented 1 year ago

Dear @pajoma This seems a great idea, but I will have to look into this, if I can/will implement this. I will keep you posted.. Kr Edward