Assign issue depending on custom field value and let the project admin maintain the value/assignee pairs
I need to configure JWT to automatically assign a person depending on a custom field value, let’s say a assignee depending on a department that is set to custom field. I can surely create a post-function "Set a field as a function of other fields”, but I would like that a non-technical project administrator could manage the information related to that. Can you recommend any way to handle this? The custom field value list is not subject to frequent change.
Comments (7)
-
repo owner -
Account Deactivated reporter Thanks! This works perfectly for a such information as department, but let's say I wanted to assign a person according to custom field that contains a numeric value and let the project admin to manage that information. For example, amount of euros. Any ideas for that?
-
repo owner In that case you should use setting rules like these ones:
a[{nnnnn} < 100]first(usersInRole("Finance")) a[{nnnnn} = 100]first(usersInRole("Purchases")) a[{nnnnn} > 100]first(usersInRole("Human Resources"))
where nnnnn is field code for a numeric field.
In this case the value selected in parameter "Field to be checked..." doesn't matter at all, since we are only using type 2 setting rules.
-
Account Deactivated reporter Thanks, this is what I had in mind, but was thinking if there was a way for project admin to manage the values according which different project roles are assigned.
-
repo owner You can use a project property in your project's description for each numeric value associated with each role. For example:
{Finance=10} {Purchases=50} {Human Resources=100}
And then use the following setting rules:
a[{nnnnn} < toNumber(projectProperty("Finance"))]first(usersInRole("Finance")) a[{nnnnn} = toNumber(projectProperty("Purchases"))]first(usersInRole("Purchases")) a[{nnnnn} > toNumber(projectProperty("Human Resources"))]first(usersInRole("Human Resources"))
-
Account Deactivated reporter - changed status to resolved
This is awesome! Thank you!
-
repo owner You are welcome :-)
- Log in to comment
Hi @ karosalminen,
You can create a Project Role for each department, and assign a unique user to this project role.
Then you can use "Set a field as a function of other fields" post-function with a configuration similar to this one:
Setting rules in the example are: