Project

General

Profile

get an issue status id in IF statement

Added by strexy strexy almost 14 years ago

Hi all,
I'm trying to customize the function create_journal in /APP/MODELS/issue.rb
This function starts with an IF condition:

if @current_journal
...
...
end

I'd like to add another condition, it should create a journal only on particular issue statuses:

if @current_journal && (issue.status==1) && (issue.status==8)
...
...
end

But it gets me an error when I try to update a task.
Maybe another variable like status_id or something else?
Could someone help me, pls?
Thanks a lot.

|strexy


Replies (1)

RE: get an issue status id in IF statement - Added by strexy strexy almost 14 years ago

OK, got it. It's status_id, just like that.

|strexy

    (1-1/1)