A MoogDb v2 method that returns the primary team assigned to a Situation.
Method getSituationPrimaryTeam
takes no request arguments.
Name | Type | Required | Description |
---|---|---|---|
| Number | Yes | ID of the Situation you want to return the primary team for. |
Method getSituationPrimaryTeam
returns the following response:
Type | Description |
---|---|
Object | A Javascript object containing the Situation ID and the primary team ID. |
The following examples demonstrate typical use of method getSituationPrimaryTeam
:
Example request to return the primary team for Situation 1906:
var actions = moogdb.getSituationPrimaryTeam(1906);
Example response returning that team 36 is the primary team for Situation 1906:
{
"primary_team_name": "Infrastructure",
"sitn_id":1906,
"primary_team_id":36
}
Example response returning that Situation 1906 does not have a primary team assigned to it:
{
"sitn_id":1906,
}