-
-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create Jira-Issue with multiple customfileds #388
Comments
thank you for calling my attention to the readthedocs page. Your ticket does not describe what kind of field it is that you are trying to change. But based on the error you described
I would assume that one of the two fields is a child of the other. If that is the case, this is the correct way to change the value of the field: if that is not the case, please describe what those two fields are. You can use Get-JiraField customfield_12000 , customfield_11102 |
Hello @lipkau , thank you for the link to the documentation! The fields i want to change are two different fields, which must be filled to create the Ticket. It is the Phone number of the User and the "Department". i hope i can describe it correctly -> its like the issue here: #56
Regards |
try this: $fields = @{
customfield_12000 = "100000"
customfield_11102 = @{
id = '11700'
}
}
New-JiraIssue -project "SERVICE" -IssueType bug -Summary Test -Priority 2 -Description "Test with PS" -Fields $fields` |
Wonderfully it works as desired. Sometimes you just do not see the mistake. Thank you for your patience and help |
Hello,
im trying to create a jira issue with two custom fields.
First I tried that, but it failed: Operation value must be a string Could not find valid 'id' or 'value' in the Parent Option object.
Next i tried the example from "https://psjira.readthedocs.io/en/latest/custom_fields.html", but it failed with:
Invoke-JiraMethod
customfield_12000
Operation value must be a string
Can anyone tell me the right way to create the issue correctly with multiple customfileds? Later i want to mix more customfileds with values and id's to create more accurate Tickets.
Thx for help guys!
The text was updated successfully, but these errors were encountered: