Online Docs

Get-exTasks - eTask PowerShell Module Template

This command retrieve the tasks in a project from eTask. The tasks are scoped to a project within a Team site and Channel.

1
2
3
4
5
6
7
Get-exTasks
-Domain <String>
-TeamId <String>
-ChannelId <String>
[-FilterExp <String>]
[-Cookie <String>]
[<CommonParameters>]

Parameters:

  • Domain:
    The domain where Team site is hosted, teams.company.com
  • TeamId:
    Required Team ID to be used by the cmdlet. See Common Parameters section in this document for more information.
  • ChannelId:
    Channel ID to be used by the cmdlet. Retrieve the value for this parameter by right-click on the team site or channel and press “Get Link” command.
  • Cookie:
    Optional cookie token to be used to authenticated into Team environment for eTask cmdlets.
  • FilterExp:
    Optional filter expression to be used by the cmdlet. See Common Parameters section in this document for more information.

Outputs:

Collection of task objects.

Error:

TBS.

Examples:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<# connect to Team instance #>
$myAccount = "oliver@anadea.com"

$userCredential = Get-Credential -UserName $myAccount -Message "Type the password."
Connect-MicrosoftTeams -Credential $userCredential

Write-Host "+ Get-exTasks with Filter for <--Your channel-->"
$myDomain = "teams.appvity.com"
$myTeam = "19:711c68b56d894b2697368214024dc89f@thread.skype"
$myChannel = "19:08c4a90b598840f0ad2055a9fe819aec@thread.skype"
$myTasks = Get-Tasks -Domain $myDomain -TeamId $myTeam -ChannelId $myChannel -Filter "status eq 'In Progress'"
ForEach ($myTask in $myTasks)
{
write-host " name: " $myTask.name
write-host " status: " $myTask.status
write-host " priority: " $myTask.priority
write-host " assignedTo: " $($myTask.assignedTo | foreach {$_.username+"," })
write-host "....."
}
Write-Host "+ Total tasks count:" $myTasks.Count

Comment

Was this article helpful?
Thanks For Your Feedback