get an issue status id in IF statement
I'm trying to customize the function create_journal in /APP/MODELS/issue.rb
This function starts with an IF condition:
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)
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.
OK, got it. It's status_id, just like that.