Component Lead

Issue #237 resolved
Hubert Kut (MWK) created an issue

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)

  1. Fidel Castro Armario repo owner

    Hi Hubert,

    To do it you should use post-function "Copy a parsed text to a field" with the following configuration: Captura de pantalla 2016-02-03 a las 13.48.00.png

    Text to be parsed is:

    first(toStringList(%{00125})) 
    

    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.

  2. Hubert Kut (MWK) 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

  3. Log in to comment