Script-based default value for contributor type attributes
Hi All,
we tried to use a custom script to provide a default value for "Owned By" attribute, in the script, we simply return a user id as a string object, but it seems didn't work, can somebody help?
Regards, Makson |
5 answers
Hi All, You need to return the UUID of the owner rather than just the ID. The link below contains an example script on how to retrieve the UUID of the user. Following the examples, I put the UUID value in the config source rather than in the script so it would be easier to change. https://jazz.net/wiki/bin/view/Main/AttributeCustomizationExamples |
Hi All, You need to return the UUID of the owner rather than just the ID. The link below contains an example script on how to retrieve the UUID of the user. Following the examples, I put the UUID value in the config source rather than in the script so it would be easier to change. https://jazz.net/wiki/bin/view/Main/AttributeCustomizationExamples |
Hi Michael,
thanks for your reply, now i am trying to set the default value for "Owned By" field of work item to currently signed-in user, do you know how to get the currently signed-in user information? Regards, Makson |
i am trying to set the default value for "Owned By" field of work item to currently signed-in user, do you know how to get the currently signed-in user information? You can use the Implied Attributes precondition to set the Owner to the Current User when the user performs a Start Working or Resolve action. Go to Project Configuration->Team Configuration. Select the Save Work Item operation then add the Implied Attributes precondition. No scripting required. |
Hi Jay,
thanks for your reply, but what if i want to set the owner to currently signed-in user when a work item is creating? Regards, Makson i am trying to set the default value for "Owned By" field of work item to currently signed-in user, do you know how to get the currently signed-in user information? You can use the Implied Attributes precondition to set the Owner to the Current User when the user performs a Start Working or Resolve action. Go to Project Configuration->Team Configuration. Select the Save Work Item operation then add the Implied Attributes precondition. No scripting required. |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.