Assigning issue on addition of component

Issue #434 resolved
Scott McDonald created an issue

Is there a way to assign the component when an Assignee is added after the ticket has been created?

For example, we allow for tickets to be created via email. The default assignee is the Project Lead. If I add a component at create, the ticket gets assigned to that component lead, however, if the component is added after create, I would still have to manually assign ticket.

Is there any way to automate the assignee?

Comments (2)

  1. Fidel Castro Armario repo owner

    Hi Scott,

    There is a possible solution that requires to force Components to be edited only using transition screens. I explain you how to implement it step by step:

    1) Create a screen called "Components Edition", and add to it only field Components.

    2) Create a global reflexive transition called "Edit Components" and associate "Components Edition" screen to it.

    A global transition is available from any status, and a reflexive transition has the same origin and destination status. The following screenshot shows how to create these kind of transitions.

    3) Add to transition "Edit Components" the same post-function you are currently using in transition "Create Issue" for setting Assignee as a function of field Components.

    4) Remove field "Components" from edit screen, keeping it in view and create screens. If you are currently sharing a same screen for edit and view and/or create operations, you will have to create a separate screen only for edit operation.

    With the solution described the only way to edit Components after issue creation will be executing transition "Edit Components", and this transition executes the post-function for setting the Assignee.

  2. Log in to comment