Project

General

Profile

Actions

Feature #26237

closed

Support wiki_page_title attribute in Versions REST API

Feature #26237: Support wiki_page_title attribute in Versions REST API

Added by Masahiro Kitagawa over 9 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
REST API
Target version:
Resolution:
Fixed

Description

According to below wiki, there is no way to access version's related wiki page.("version_wiki_page_title")

Rest_Versions

We expect more extended REST API like follows,

<?xml version="1.0" encoding="UTF-8"?>
<versions type="array" total_count="34">
  <version>
    <id>1</id>
    <project name="Redmine" id="1"/>
    <name>0.7</name>
    <description/>
    <status>closed</status>
    <due_date>2008-04-28</due_date>
    <created_on>2008-03-09T12:52:06+01:00</created_on>
    <updated_on>2009-11-15T12:22:12+01:00</updated_on>    
    <version_wiki_page_title>FooBarWikiPage</version_wiki_page_title>
  </version>
</versions>

Files

versions_api_wiki_page_title.diff (1.73 KB) versions_api_wiki_page_title.diff Patch for Version API Severin Schols, 2017-12-19 02:25
26237-test-update.diff (893 Bytes) 26237-test-update.diff Go MAEDA, 2017-12-24 05:28
add_put_and_post_test.patch (2.34 KB) add_put_and_post_test.patch Mizuki ISHIKAWA, 2018-11-28 06:31

Related issues 1 (0 open — 1 closed)

Related to Redmine - Feature #10384: Versions REST API - Please add the WIKI field in the XML outputClosedActions

Updated by Go MAEDA over 9 years ago Actions #1

  • Category set to REST API

Updated by Toshi MARUYAMA over 9 years ago Actions #2

  • Description updated (diff)

Updated by Severin Schols almost 9 years ago Actions #3

Just ran into the same thing, and decided to get a fix in place right away. This works for us. Output is not exactly as shown above, but like this (taking the same data as example)

<?xml version="1.0" encoding="UTF-8"?>
<versions type="array" total_count="34">
  <version>
    <id>1</id>
    <project name="Redmine" id="1"/>
    <name>0.7</name>
    <description/>
    <status>closed</status>
    <due_date>2008-04-28</due_date>
    <created_on>2008-03-09T12:52:06+01:00</created_on>
    <updated_on>2009-11-15T12:22:12+01:00</updated_on>    
    <wiki_page_title>FooBarWikiPage</wiki_page_title>
  </version>
</versions>

Updated by Go MAEDA almost 9 years ago Actions #4

LGTM. I updated a test.
Setting target version to 4.1.0.

Updated by Kenan Dervisevic about 8 years ago Actions #5

Is it possible to get this in 4.0.0? It's a small fix, so I guess it's not a problem to change the target release.

Updated by Mizuki ISHIKAWA almost 8 years ago Actions #6

I added PUT and POST tests to the test code written by Go MAEDA.
versions_api_wiki_page_title.diff works as expected.

Updated by Go MAEDA over 7 years ago Actions #7

  • Subject changed from REST API for related wiki page in version to Support wiki_page_title attribute in Versions REST API
  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed the patches. Thank you for your contribution.

Updated by Go MAEDA over 7 years ago Actions #8

  • Related to Feature #10384: Versions REST API - Please add the WIKI field in the XML output added
Actions

Also available in: PDF Atom