Assign issue to a user by Project Role no longer working on my subtask

Issue #970 resolved
Chris Adamski created an issue

I have a workflow that auto creates subtasks and assigns them to the appropriate members of the project role. The auto assign feature has stopped working on the subtasks and instead the sub tasks are assigned to the current user (Who is not in any project role defined in the project)

Requirements Subtask - assigned to member of the SWREQ team Development subtask - assigned to a member of the DEV team

Currently running JIRA software (v7.7.0#77001-sha1:3be3151) with v2.3.0 of the workflow toolbox

I have verified that Assign issue to a user by Project Role works correctly with parent issues.

This issue may have first showed up in version 2.2.46 or 2.2.47. We were just about to put JIRA into production and were testing out the workflow before the team started using the tool.

Comments (7)

  1. Fidel Castro Armario repo owner

    Hi @cadamskigntx,

    First of all, I inform you that we have a new support site. I recommend you to begin using the new site, since current one is going to stop admitting new issues in not too long.

    I need the following information:

    1. Screenshot of the post-function configuration you are using for creating sub-tasks.
    2. Which method are you using to define default user for a project role: user properties or project properties. Please, attach a screenshot with the user property or project property (in project description), according to the method you are using.
    3. Please, check that the user you have defined as default assignee for the project role, is actually in the project role.
  2. Chris Adamski reporter

    Thanks Fidel,

    I will be sure to use the new support area in the future. Sorry for using the wrong spot at the start.

    Here are the details for my issue

    1.

    On transitions to a requirements phase the parent issues uses a post function to create a new subtask of type Requirements Subtask The parent issue then uses a post function to transition the subtask issue status to a staging state [cid:8f3ace33-e3a9-4a32-b892-7f5fbc889689] In the stage transition in the subtask a post function is used to copy data from the parent issue then a post function is used to update the assignee to a user that is a member from a defined project role. [cid:1df1e564-cfb5-404b-a6f5-93fbf59f5778] 2. I have not defined default users in a project role. Within my project I have defined roles and assigned team members to each of those roles. I use the assign to user with fewer assigned issues exclusively when I try to do the auto assign. [cid:cd8bf3fd-de67-48b2-b117-d7a6fc6518b9]

    1. If I dont have the default user set is that throwing off the whole post function? I am able to auto assign issues to roles in the parent issue. Just not in the subtask.

    Thanks or your help so far

  3. Fidel Castro Armario repo owner

    Hi @cadamskigntx,

    If you are using option "least busy user in project role..." you don't need to have default user for project real defined.

    I can't see your screenshots. I think that you didn't attach them correctly to the issue. Please, do it using the option available up in the editor:

    attaching-image.png

  4. Chris Adamski reporter

    Sorry Fidel. Previous comment updated with images 1.

    On transitions to a requirements phase the parent issues uses a post function to create a new subtask of type Requirements Subtask The parent issue then uses a post function to transition the subtask issue status to a staging state parent_issue_workflow_create_subtask.png

    In the stage transition in the subtask a post function is used to copy data from the parent issue then a post function is used to update the assignee to a user that is a member from a defined project role. subtask_staging_transition_assign_to_user.png

    1. I have not defined default users in a project role. Within my project I have defined roles and assigned team members to each of those roles. I use the assign to user with fewer assigned issues exclusively when I try to do the auto assign.

    roles_for_project.png

    If I dont have the default user set is that throwing off the whole post function? I am able to auto assign issues to roles in the parent issue. Just not in the subtask. Thanks or your help so far

  5. Fidel Castro Armario repo owner

    Hi @cadamskigntx,

    The problem is due to post-function number 5 in transition Stage of your sub-task's workflow. You should remove it, since it's overriding the auto-assignment of post-function 3.

    On the other hand, you don't need post-function 2 in the transition in parent's workflow for transitioning just created web-task. You can simply write on virtual field Issue status using parameter Set Fields on post-function "Create issues and subtasks".

  6. Chris Adamski reporter

    Thanks, such an obvious mistake. Sorry that I didn’t catch it. That fixed everything for me.

    I appreciate your help

  7. Log in to comment