JiraPS icon indicating copy to clipboard operation
JiraPS copied to clipboard

Differentiate between name and id when searching for fields

Open lipkau opened this issue 8 years ago • 2 comments

Expected Behavior

I can define if I want to search by name, id or both

Current Behavior

The function always first returns name matches and if no match, all id matches

Possible Solution

Have parameters for that

lipkau avatar Nov 13 '17 09:11 lipkau

@lipkau, are you talking about Get-JiraField commandlet?

Would you like to split parameter -Field to 2 -FieldId and -FieldName ?

alexsuslin avatar Mar 19 '19 22:03 alexsuslin

@lipkau, are you talking about Get-JiraField commandlet? yes, I am

Would you like to split parameter -Field to 2 -FieldId and -FieldName ? not sure, as it would change a lot the way this cmdlet works (eg: Get-JiraField "Team", customfield_12000 would need to be 2 calls of the cmdlet) my initial thought was to have a [Switch] parameter to restrict the behavior to only search for ids

lipkau avatar Mar 21 '19 13:03 lipkau