Skip to content
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

New-FreshServiceRelease attachments not working #2

Open
rasimmers opened this issue Jun 6, 2023 · 1 comment
Open

New-FreshServiceRelease attachments not working #2

rasimmers opened this issue Jun 6, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@rasimmers
Copy link
Contributor

Expected Behavior

New-FreshserviceRelease will create a Release with specified attachment(s).

Current Behavior

Error message from API: We're sorry, but something went wrong.

Possible Solution

As a workaround, create Release without attachment(s) and then use Set-FreshServiceRelease to attach items.

Steps to Reproduce (for bugs)

  1. Create a new Release and specify the path to a file with -attachments:
$newFreshServiceReleaseSplat = @{
    subject            = "Software Z-1000 v1.0"
    priority           = 1
    status             = 1
    planned_start_date = (Get-Date  -Hour 19 -Minute 0 -Second 0).ToUniversalTime()
    planned_end_date   = (Get-Date  -Hour 19 -Minute 15 -Second 0).ToUniversalTime()
    release_type       = 2
    attachments = 'C:\Scripts\Attachments\attachment.txt'
}

New-FreshServiceRelease @newFreshServiceReleaseSplat
  1. Execute command and API produces: We're sorry, but something went wrong.

Context

Cannot create Freshservice Release with attachments.

Your Environment

  • Module version used: 0.1.1
  • Operating System and PowerShell version: Windows 11 with Powershell 7.3.4
@rasimmers rasimmers changed the title New-FreshServiceRelease New-FreshServiceRelease attachments not working Jun 6, 2023
@rasimmers rasimmers self-assigned this Jun 6, 2023
@rasimmers rasimmers added the bug Something isn't working label Jun 6, 2023
@rasimmers
Copy link
Contributor Author

This issue has been raised with Freshservice Product Management. Based on initial findings and behavior, it needs to be investigated as a bug in the Freshservice API. Attachments are supported with Invoke-WebRequest -Form and the same code is used in all API endpoints.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant