Page 1 of 1

About custom fields and history logs

Posted: 31 Mar 2016, 18:23
by Anapheron
I have created a custom field called "Days"
I figured how to use it to count every day it has passed since that bug is opened, depending on status (for example: if the status is closed, then the day count will stop (it dont go to zero, just stop counting), if it is re-opened, the day count will start to count again)

I wish to know how to put it in history log, for example: a bug is closed at day 20, then it has re-opened at day 36, i wish to put it on history log "Days 20>>>>36"

Thank you for your patience and atention :)

Re: About custom fields and history logs

Posted: 01 Apr 2016, 17:59
by Anapheron
I have wrote a query that inserts into the mantis_bug_history_table correctly, but i can't take the old_value

so it goes 0----->30

any ideas to get the old_value?
thanks!

Re: About custom fields and history logs

Posted: 05 Apr 2016, 06:06
by atrol
Have a look at function custom_field_get_value in file core/custom_field_api.php

Re: About custom fields and history logs

Posted: 12 Apr 2016, 15:26
by Anapheron
It puts the value normally in history log, but i need to put a value in the custom field text area
i wish to get the value in history log without needing a custom field text area
any ideas?