Component Lead
Hello Fidel,
I would like to as you about functionality in JIRA Workflow Toolbox. I have a business case that each component has it own lead. I would like to check the lead of component, which user selected and set user picker field depending on the choice. I.E Component AAA Lead: user A Component BBB Lead: user B
User selected component BBB so the applicant (user picker field) is user B. Is it possible to do it using your plugin?
P.S Similar functionality to: "Assign the issue to the lead developer."
Looking forward to hearing from you, BR HK
Comments (4)
-
repo owner -
reporter Thanks Fidel!
It is working great! You mentioned about validator which checking if user selected just one component. Could you tell me how to achive it with Toolbox? I used script runner validator so far but why not to use your plugin.
Regards, HK
-
repo owner You can implement a validation in order to warn the user for selecting only one component using "Boolean validator with math, date-time or text-string terms" with the following configuration:
Boolean expression is:
numberOfSelectedItems(%{00094}) = 1
Note that %{00094} is field code for "Components".
-
repo owner - changed status to resolved
- Log in to comment
Hi Hubert,
To do it you should use post-function "Copy a parsed text to a field" with the following configuration:
Text to be parsed is:
Note that %{00125} is code for "Components leaders" virtual field.
In case the user selected more than one component, first component leader will be selected. If you need another behavior, please tell it to me.
If needed a validation can be added to transition in order to warn the user for selecting only one component.