AtlassianPS / JiraPS

PowerShell module to interact with Atlassian JIRA
https://AtlassianPS.org/module/JiraPS
MIT License
321 stars 131 forks source link

Allow Custom Server URL #497

Closed scoro-bbc closed 6 months ago

scoro-bbc commented 6 months ago

Context

It would be helpful to allow Set-JiraConfigServer to allow for customised Server URLs

Is your feature request related to a problem? Please describe.

Description

Currently Set-JiraConfigServer -Server allows you to set the root path to the JIRA Server. However JIRA Server does allow you to customise the URL for JIRA API which can have different elements to the defaults used when requesting issues

For instance if a server has been set up to have /rest/agile as the initial elements in the path rather than rest/api/2 when call is made to the Server the path becomes badly formed.

For example https://jira.dev.bob.com/rest/agile, becomes https://jira.dev.bob.com/rest/agile/rest/api/2/

Describe the solution you'd like It would be helpful to either have a Set-CustomConfigServer -Server that allows the user to set the custom base path, with ConfigServer check in PS Functions to check if using a CustomConfigServer object and then to make use of the custom URL

Additional Information

lipkau commented 6 months ago

Hello @scoro-bbc .

The Agile Board (Scrum and Kanban) used to be a plugin in Jira but have been integrated into the default Jira bundle. But the API was not integrated - that's why you see a fundamental difference in the base URL of the API.

I have started a Module which extends JiraPS (requires it to be set up): https://github.com/AtlassianPS/JiraAgilePS But the module was never finished. So if it's lacking a functionality that you need, consider contributing with a PR :-)

you will also note that the instructions (README.md) say that the module is published to the gallery, which is not true...