Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Auto Owner assignment according type

 Hello,

I'm looking for a way to assign automatically the owner to a workitem according the type.

-> i can set a default value. But can't be different by type.
-> about the calculated value. i can't request the users.

Anyone know a solution for this need ?

Thanks,

Antoine

0 votes


Accepted answer

Permanent link
Antoine,

you could use a script based calculated value provider, if you have a fixed list of types and users.
In the value provider you would read the type attribute and then return the UUID of the user you want. See https://jazz.net/wiki/bin/view/Main/AttributeCustomization and https://jazz.net/library/article/1093 for some hints.
If the association is not trivial and you need to search you could try https://rsjazz.wordpress.com/2013/06/26/attribute-customization-java-based-value-providers-conditions-and-validators/ .

Other viable approaches would be follow up actions / participants.

However: Why are there so few default value providers?

The reason is simple, when the work item is created and the providers run, there is almost no information available. Even the type is only preliminary and could be changed afterwards. That is the reason why default values as described by you don't really seem to make a lot of sense. The decision point for the value is after the fact of running the default value provider.

With Dashboards and queries, RTC provides way better ways to handle incoming work as well. The responsible persons would just have a query that shows them the unassigned work.

Antoine LELEU selected this answer as the correct answer

0 votes

Comments

Two more things.

  1. There is a request to be able to have attribute customization by type.
  2. You can create a script based default value provider that also returns the user UUID

However, the type can change after the provider ran and then your default owner would be invalid.


One other answer

Permanent link
Hi ralph,

Thanks for your answer. It's very appreciated.
Just one more thing.What do you mean by a script that also returns the user UUID ?
It's possible to get the user UUID in my script, according the name by example ?

Thanks,
Antoine

0 votes

Comments

The UUID is what you get if you do a getValue on a contributor/user/owner attribute (you get the name/ID) if you do a getValue). It is a string of incomprehensible characters.

If you create a value provider for a contributor attribute, you need to return that and not the name to set it. And no, you can't discover them, there is no API available as explained in both of the links above.

What I mean with discover is, use the API and a user name, ID, team membership or any other project area related information. You can get the UUID for an existing user (e.g. using my AttributeValueSpy provider on an attribute that is set) and hardcode that.

You could potentially get it with a Java based value provider from the project area structure e.g. based on a role, as I explain in the rsjazz post.

Your answer

Register or log in to post 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Nov 05 '14, 4:30 a.m.

Question was seen: 3,526 times

Last updated: Nov 05 '14, 11:58 a.m.

Confirmation Cancel Confirm