About custom fields and history logs

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
Anapheron
Posts: 19
Joined: 29 Oct 2015, 21:56

About custom fields and history logs

Post 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 :)
Anapheron
Posts: 19
Joined: 29 Oct 2015, 21:56

Re: About custom fields and history logs

Post 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!
atrol
Site Admin
Posts: 8366
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: About custom fields and history logs

Post by atrol »

Have a look at function custom_field_get_value in file core/custom_field_api.php
Please use Search before posting and read the Manual
Anapheron
Posts: 19
Joined: 29 Oct 2015, 21:56

Re: About custom fields and history logs

Post 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?
Post Reply