It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How could i set CustomField Checkbox?

hopefully someone can help me on my Powershellscript to set the Checkboxes below...

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 -Headers $headers -ContentType application/json -method get).Fields.customfield_11904

The Results are:


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 "" -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 sad

1 answer

Is there any Support here to find a solution smile?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in United States

Welcome new members!

Wow, I got swamped and now that I've finally gotten my head back above water, I find we have several new members! Welcome @Darren Keith lowman , @Amanda Babb , @Luis Zapata , @Joli Holmes , and @bh...

24 views 0 2
View post

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you