Online Docs

Create-exTask (REVIEW)

Create a new task item.

1
2
3
4
5
6
7
Create-exTasks
-Domain <String>
-TeamId <String>
-ChannelId <String>
-Value @<Array>
[-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.
  • Value:
    • Hostable contains pair values to be set for the task item. See the Task Object section for properties definition.
  • 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

TBS

Error

201/400

Examples

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# connect to Team instance
$myAccount = "oliver@anadea.com"
Connect-MicrosoftTeams

Write-Host "+ Get-exTasks with Filter for PlaygroundV2/PS_Testing_Tracy"
$myDomain = "teams.appvity.com"
$myTeam = "19:711c68b56d894b2697368214024dc89f@thread.skype"
$myChannel = "19:663f1a565fb248a1a9c2d4b31540d52d@thread.skype"
$bugID = '5efc4f4da9712e71e87e8672'

$myAssignedTo = @()
$myUser = Get-exUser -UserPrincipalName "@anadea" -SourceDirectory Microsoft.Graph.User
$myAssignedTo += $myUser

Import-Csv -Path 'C:\Program Files\WindowsPowerShell\Modules\- eTask\Test\Planner.csv' | ForEach-Object {

$myAssignedTo = @()
$myUser = Get-exUser -UserPrincipalName $_.'Assigned To' -SourceDirectory Microsoft.Graph.User
$myAssignedTo += $myUser
$setValue = @{"Title" = $_.Title; "status"= $_.Status; "priority"=$_.Priority; "phasename"= $_.Phase; "bucketname"=$_.Story;
"assignedTo" = $myAssignedTo; "source" = "Appvity.eTask" }

Create-exTask -ChannelId $myChannel -TeamId $myTeam -Domain $myDomain -ProjectId '5edf4104788d1595cdc509b4' -Value $setValue
} | Format-Table -Property _id, name, source, priority, status, assignedTo

Comment

Was this article helpful?
Thanks For Your Feedback