Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Fields with power shell

Florian Zepter
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 4, 2021

Hi @AlL,

i  am creating tickets with PowerShell.

I am using custom fields which was working till i need a new filed.

 

$fields = @{
customfield_10106 = @{id = '15305'}
customfield_10302 = @{id = "1079"}
customfield_10301 = @(
@{name = 'liszef0'}
@{name = 'lisbim0'}
@{name = 'lisfos0'}
)
#customfield_10800 = @{id = '13400'}
#Assignee = @{name = $vAssignee}
}

$params = @{
Project = 'SIRT'
IssueType = 'Incident'
Summary = $vSummary
Description = $vDescription
Fields = $fields
}

I am always getting the message:

Invoke-JiraMethod :
customfield_10302
-----------------
Operation value must be a string

Without the customfiled_10302 its working like it should.

 

Get-JiraField customfield_10302 | fl *

ID : customfield_10302
Searchable : True
Schema : @{type=sd-customerrequesttype; custom=com.atlassian.servicedesk:vp-origin; customId=10302}
Name : Customer Request Type
Custom : True
Navigable : True
Orderable : True
ClauseNames : {cf[10302], Customer Request Type}

 

0 answers

Suggest an answer

Log in or Sign up to answer