Closed luk3k0 closed 3 years ago
Oh, i found it The after save code should be like this:
if @need_create
# change if status is open in private tracker
if @issue.status_id==3 && @issue.tracker_id==2
root.update(
:status_id=>3,
:description = description
end
# change if status is done in private tracker
if @issue.status_id==8 && @issue.tracker_id==2
root.update(
:status_id=>8,
:description = description
end
end
Can i update other issue or parent issue when sub issue change?
I have 2 project with:
Private project with status "new; open; confirm; working; done,..."
Public project (Subproject of Private project) with status "open; working; solved"
Issue in Private project has parent task id of issue in Public project.
When issue in private project update status then issue in public project have to change status, content too.
Here is the before save code:
Incomplete after save code:
It's not working. I know something not right with after save, but i don't know how to fix it. I would be very grateful if you could help.
Thank you.