It's not the same without you
Join the community to find out what other Atlassian users are discussing, debating and creating.
Hi,
hopefully someone can help me on my Powershellscript to set the Checkboxes below...
checkbox.jpg
I used th follow command after Autorisation was completed, to get the Value of an Task that already has this Checkboxes checked.
Invoke-RestMethod -Uri https://jira.Kunde.de/rest/api/2/issue/TEST-2 -Headers $headers -ContentType application/json -method get).Fields.customfield_11904
The Results are:
jira.jpg
So after this Hotwo i search a way to set the checkboxes as "true"
Here is my Script..
$global:credential = get-credential -Message "Please enter Jira credentials:" $BSTR = [System.Runtime.InteropServices.marshal]::SecureStringToBSTR($credential.Password) $global:jPassword = [System.Runtime.InteropServices.marshal]::PtrToStringAuto($BSTR) $global:jLogin = $credential.UserName.TrimStart("\") $bytes = [System.Text.Encoding]::UTF8.GetBytes("$jLogin`:$jPassword") $global:encodedCredentials = [System.Convert]::ToBase64String($bytes) $headers = @{"Authorization"="Basic $encodedCredentials"} $body1= '{ "fields" : { "customfield_11904" : { "value" :"Installation" } } }' Invoke-RestMethod -Uri "https://jira.kunde.de/rest/api/2/issue/TEST-2" -Headers $headers -ContentType application/json -method put -body $body1
I think the Format in $body1 is not correct but iam still unsure.
Hopefully someone get the Scrip working
This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.
Read moreAtlas Camp is our developer event which will take place in Barcelona, Spain from the 6th -7th of September . This is a great opportunity to meet other developers and get n...
Connect with like-minded Atlassian users at free events near you!
Find a groupConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.
Start an AUGYou're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.