I had a server running scripts to create the tickets we need done daily but was shut down for a few months.
I am trying to get the server back up and running the scheduled scripts but when I try to run the scripts that had worked I get the following output after it logs into Jira API
Exception calling "GetLeftPart" with "1" argument(s): "This operation is not supported for a relative URI."
At C:\Program Files\WindowsPowerShell\Modules\JiraPS\2.14.3\JiraPS.psm1:3230 char:9
+ [Uri]$Uri = $Uri.GetLeftPart("Path")
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : InvalidOperationException
Invoke-JiraMethod : Exception calling "GetLeftPart" with "1" argument(s): "This operation is not supported for a relative URI."
At C:\Program Files\WindowsPowerShell\Modules\JiraPS\2.14.3\JiraPS.psm1:2541 char:31
+ $result = Invoke-JiraMethod @parameter
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-JiraMethod], MethodInvocationException
+ FullyQualifiedErrorId : InvalidOperationException,Invoke-JiraMethod
Any help would be appreciated.
Did you set the jira server hostname (Set-JiraConfigServer)? Maybe you lost the protocol (https://)?
I'm having trouble with this piece I think, I'm looking through everything and can't find the place I set the server hostname, I found the Set-JiraConfigServer in the Jira.psm1 file but no where in the other parts of the scripts for these tasks actually seems to set the actual URL for our Jira instance.
Where do I look for that?
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You have to use 'set-jiraconfigserver *servername*' at the top of your script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.