Defect #29268

Can't include attachments or relations with Issues API

Added by César DJ Caësar 9114 12 months ago. Updated 12 months ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:REST API
Target version:-
Resolution: Affected version:3.4.2

Description

Hello,
When I make an API call to get all the trackers of a certain tracker_id including the relations, it doesn't work.
I use:

/issues.json?tracker_id=XXX&include=relations

I just have the content of the issues, as if I didn't put "&include=relations"

However, it works when I call

/issues/[number of issue].json?include=relations,attachments

It seems to have a problem fetching issues with includes and parameters.

Here is the info:

  • database manager version: Mysql2
  • Ruby version: 2.4.1-p111 (2017-03-22) [x86_64-linux]
  • Rails version: 4.2.8
  • Redmine version: 3.4.2 stable

Thanks for the help.
César

Also available in: Atom PDF