Project

General

Profile

Get Redmine Status change messages

Added by Aditya Sinha over 6 years ago

Hi Team,

How can I get the Redmine status change messages? Suppose I change the status from Open to Closed I can clearly see a message like "Status changed from Open to Closed" which I think gets stored in journal.notes but I am unable to get or print that message. Folks please help me if it is achievable.
I have attached a screenshot for the same.

Thanks,
Aditya Sinha


Replies (4)

RE: Get Redmine Status change messages - Added by Bernhard Rohloff over 6 years ago

Hi Aditya,

I'm not sure, what you would like to achieve. There is no kind of push notification in Redmine, only via Email. If you want to change your Email notification settings, you can do this in the "My Account" section in the top right corner. I think it would be very helpful if you would upload you screenshot, too. ;-)

Kind regards,
Bernhard

RE: Get Redmine Status change messages - Added by Aditya Sinha over 6 years ago

Hi Bernhard,

Thanks for your prompt reply.
I am trying to automate the redmine ticket resolution by using python and automation scripts( Perl/shell scripts). In one of the scenario the user story is that if a redmine ticket status is changed from closed to open i.e. reopening of the ticket (we don't have a reopen status in our redmine instance) than the automation should not pick those tickets and should be handled manually. In order to achieve this my thinking was that if the notes of redmine ticket had "Status changed from Closed to Open" then the automation will not pick it. I have attached a screenshot of the message which I want to get. Also, is there any another and better way to achieve this (except addition of a re open status :P).

Please let me know if you require further details.

Many thanks,
Aditya Sinha

RE: Get Redmine Status change messages - Added by Bernhard Rohloff over 6 years ago

Hi Aditya,

I think I understand, what you try to make. You want so separate the "brand new" issues from the "reopened" once. So if you make it with Python my approach would take advantage of the REST Api. There your get all your issue information in either json or xml format which makes it very easy to extract the information you need.

My steps would be:

  • Fetch issues with status "new" including its journals
  • Crawl through the journals and look for a status change
  • If there is a status change, discard the issue. (a new issue shouldn't have one)

You can find a good documentation of the REST API in the Wiki.
There is also a nice Python library for Redmine. I haven't tried it yet, but it looks very promising to me.

If you have further questions, feel free to ask.

Good luck and kind regards,
Bernhard

RE: Get Redmine Status change messages - Added by Aditya Sinha over 6 years ago

Hi Bernhard,

Thanks for your reply. I was able to achieve this by using python libraries as suggested by you.

Many Thanks,
Aditya Sinha

    (1-4/4)