Assign Teams

These webhooks assign Teams to work items in Targetprocess.

All the assignments are added to the list of already existing ones. You cannot unassign a team from an entity using webhooks.

🚧

You have to be very careful while working with Team Assignments

Here is a set of rules to make it work:

  • The Team must be assigned to the Project beforehand.
  • If you'd like to assign several Teams to one work item, each Team should have their own Team Workflow set up for this entity type in the current Project.
  • If you're trying to assign several Teams to one work item and one of these Teams is already assigned, the Webhook will fail. If sometimes you create work items with one or more Teams already assigned, we recommend setting up separate Webhook profiles for each Team.

Assign a Team(s) to a newly created work item

👍

Please consider using the following Automation Rule instead of this webhook.

In advance, please obtain numeric IDs of the teams you want to assign to the entities. Then use the IDs in template of the webhook.

https://your-targetprocess-address/api/v1/Assignables?token=[your token]
Create Task, Bug, User Story, Feature
ProjectName == "Team Project"
{
  "Id":{{ID}},
  "AssignedTeams":{
    "Items":[
      {
        "Team":{
          "Id":12
        }
      }
    ]
  }
}
{
  "Id":{{ID}},
  "AssignedTeams":{
    "Items":[
      {
        "Team":{
          "Id":12
        }
      },
      {
        "Team":{
          "Id":34
        }
      }      
    ]
  }
}

Inherit Assigned Team from parent Epic to nested Features

👍

Please consider using the following Automation Rule instead of this webhook.

🚧

Only first assigned Team is added

The webhook cannot assign more than one team from parent Epic to nested Features. When a team is unassigned from an Epic the webhook does not remove it from Features.

The configuration consists of 3 steps.

  1. Set Custom Field:
Entity TypeField NameField TypeSystem
FeatureParentTeamNumericV
  1. Set Metric:
Entity TypeField NameCustom Formula
FeatureParentTeamIIF(Epic.AssignedTeams.Count>0,Epic.AssignedTeams.First.Team.Id,null)
  1. Set Webhook.
https://your-targetprocess-address/api/v1/Assignables?token=[your token]
Update Feature
ProjectName == "My Project" and ParentTeam != Previous.ParentTeam and ParentTeam != null
{
  "Id":{{ID}},
  "AssignedTeams":{
    "Items":[
      {
        "Team":{
          "Id":{{ParentTeam}}
        }
      }
    ]
  }
}