Project

General

Profile

How to get the projects from an issue ?

Added by Gui MOC about 14 years ago

Dear all,

I need to custom a bit the mailer.rb file.

I wonder what is the best solution to get a sorted list with the project and the subprojet from one issue.

I thank you in advance for you help.

Best regards,

Guillaume


Replies (2)

RE: How to get the projects from an issue ? - Added by Felix Schäfer about 14 years ago

If i is your issue object:

i.project.self_and_ancestors

Gives you an array of projects with the highest (the "root" project) at index 0 and so on.

    (1-2/2)