Project

General

Profile

Move news from one project to another ...

Added by Ivan Cenov about 11 years ago

... is it possible?

Now, it is possible to move issues from one project to another. OK, I use this when I want to consolidate two or more projects. This would not be complete if the news remain in the old project. Is there way to move them as it is possible with issues?


Replies (6)

RE: Move news from one project to another ... - Added by Ivan Cenov about 11 years ago

I'm afraid this is the only way by now. Meanwhile, I saw what have to be done - it's easy....
What do you think, does this issue have enough usage so as to be raised to feature request?

RE: Move news from one project to another ... - Added by Jan Niggemann (redmine.org team member) about 11 years ago

I don't know if a lot of people would want this, but go ahead and open a feature request, perhaps other people want the same...
If I'm not mistaken (I'm no rails pro) that should be relatively easy to implement.

RE: Move news from one project to another ... - Added by george swain about 11 years ago

yes it is possible see Ivan's post

RE: Move news from one project to another ... - Added by Marcos Mata 10 months ago

I had same the same need, solved with the Ruby console:

n = News.where('project_id': 'project-source-id').first
n.instance_eval { self['project_id'] = 'project-destination-id' }
n.save

With this code you have to call it as many times as news you have, in my case it was not a problem, but for sure it can be improve to change all the news.

You can get the project id adding .xml to the Project url:

    (1-6/6)