JiraPS icon indicating copy to clipboard operation
JiraPS copied to clipboard

Group functions should support Description

Open lipkau opened this issue 8 years ago • 2 comments

Expected Behavior

You can create a new Group and be able to provide a value to all possible fields You should be able to get the description of a function

Current Behavior

It is not possible to set or retrieve the description field

lipkau avatar Jun 21 '17 06:06 lipkau

According to https://docs.atlassian.com/software/jira/docs/api/REST/8.0.2/#api/2/group-getGroup

The methid is DEPRECATED

It only supports expand parameter and only expand=users to list all the users under the group, however you can ask for a limited result, e.g. startIndex = 2 and endIndex = 5 will be expanded=users[2:5]

Do you think it is worth to implement that functionality according that Atlassian marked that REST method as depricated?

alexsuslin avatar Mar 19 '19 22:03 alexsuslin

Yes, I do. As it has been marked as deprecated a long time ago, I would expect it to no longer work with Jira 8 (I didn't check).

I do not have a solution yet for stuff that we had working and had to modify for newer versions.

The best thing I came up with this far is to have a new private function Get-LegacyJiraGroup (or something similar) and have the real Get-JiraGroup have some kind of logic (try/catch? if (!$result) {}?) that will try again with the legacy function. If so, this functionality (to try legacy functions before returning 0) could be configurable.

lipkau avatar Apr 26 '19 13:04 lipkau