Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8560819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:21:51+00:00 2026-06-11T16:21:51+00:00

I want to add a note on a Redmine issue. I am using Drupal

  • 0

I want to add a note on a Redmine issue. I am using Drupal and PHP for this.

I can fetch data and post issues so I know connectivity to Redmine through the API is fine.

I have had a look at the documentation for the Redmine API at http://www.redmine.org/projects/redmine/wiki/Rest_api

At the bottom for issue creation it gives a format of the following:

PUT /issues/[id].json
{
"issue": {
  "subject": "Example issue (was: Test issue)",
  "notes": "Changing the subject" 
}
}

Now when I create an issue for example, the array is a simple one dimensional one. What is the structure for the array of data which I need to pass for this issue updating process.

Example of my issue creation array:

$redmineIssueArray = array();
$redmineIssueArray['project_id'] = 2;
$redmineIssueArray['subject'] = $typeBug . " $date";
$redmineIssueArray['priority_id'] = 4;
$redmineIssueArray['description'] = $bugDesc;
$redmineIssueArray['assigned_to_id'] = 2;

Just a note, the function to update an issue from the redmine module in Drupal is:

redmine_rest_api_issue_update();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T16:21:52+00:00Added an answer on June 11, 2026 at 4:21 pm

    If you don’t have to use Drupal functions, use PHPActiveResource and updating an issue will be easy like:

    // find and update an issue
    $issue->find(2);
    echo $issue->subject;
    $issue->set('subject', 'This is the new subject')->save ();
    // update status
    $issue->set('status_id', 2)->save();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to add some note to Post Edit window so I can alert
<textarea name=notesrows=2 cols=70 readonly><?php if(!empty($this->log_note)){ echo $this->log_note;} ?> </textarea><br><br> <label for=add_note> Add Note </label>
I am using Zend Framework in my project. I want to add a description/note
I want to add a custom right-click menu to my web application. Can this
I want to be able to add a little note, at the beginning of
I want add new Feed item on entity persist and update. I write this
I want add my custom sidebar next right column all page. Please check this
I Want to add the data to the xml file from my asp.net GUI.So
I have successfully built a login form using ajax and want to add a
I want to add several headers to all PHP output on my server. In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.