Forums

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

JiraPS Powershell Issue

Aaron Jones August 6, 2020

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.

1 answer

0 votes
Dmitry Krasnov
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!
August 7, 2020

Did you set the jira server hostname (Set-JiraConfigServer)? Maybe you lost the protocol (https://)?

Aaron Jones August 21, 2020

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,

Christopher Huckabee November 1, 2021

You have to use 'set-jiraconfigserver *servername*' at the top of your script.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events