View Issue Details

IDProjectCategoryView StatusLast Update
0012969mantisbtapi soappublic2012-10-18 18:01
ReporterMagicBuzz Assigned Todregad  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionno change required 
Product Version1.2.5 
Summary0012969: mc_project_get_all_subprojects returns string[] instead of ProjectData[]
Description

When you ask the method mc_project_get_all_subprojects(), the result is a array containing all subprojects ids.
It looks like there isn't any way to get the detail of those subproject :

  • mc_projects_get_user_accessible() only returns the first level projects
  • I can't find any other method that could return a ProjectData like "mc_get_project(project_id)"

This could be fixed by changing the return value type from string[] to ProjectData[]

TagsNo tags attached.

Activities

MagicBuzz

MagicBuzz

2011-05-02 11:18

reporter   ~0028732

I found a way to get the subprojects properly.
The mc_projects_get_user_accessible() returns a ProjectData array.
This array contains a property "subprojects" of ProjectData[].

Actually, the mc_project_get_all_subprojects() looks useless until it's fixed. But we still can use the other method to get subprojects, so the bug isn't "major" severity anymore.

rombert

rombert

2011-05-04 14:52

reporter   ~0028750

What would be the actual feature request here? I agree that the method is not very useful, but we can't break backwards compatibility by changing the return type.

dregad

dregad

2012-10-06 05:23

developer   ~0033052

MagicBuzz,

You did not provide any feedback; I am therefore resolving this issue as "no change required".

Feel free to reopen the issue at a later time and provide the requested information.