Search found 6 matches

by 7h3ju57
Jun 14, 2017 12:40 pm
Forum: Customizations
Topic: Costum filed suggest the next sequencial number.
Replies: 3
Views: 3233

Re: Costum filed suggest the next sequencial number.

Well i had some time to tinker around and was able to get my custom field number to increment using this. Hope this helps :) function custom_function_override_issue_create_notify( $p_issue_id ) { #Get custom field id by field name $t_id = custom_field_get_id_from_name( 'fieldname' ); #Get the curren...
by 7h3ju57
Jun 14, 2017 12:29 pm
Forum: Customizations
Topic: custom field auto incrementing number [FIXED]
Replies: 4
Views: 3640

Re: custom field auto incrementing number

Well i had some time to tinker around and was able to get my custom field number to increment using this. function custom_function_override_issue_create_notify( $p_issue_id ) { #Get custom field id by field name $t_id = custom_field_get_id_from_name( 'fieldname' ); #Get the current yeat $c_year = da...
by 7h3ju57
Jun 13, 2017 11:43 am
Forum: General Discussion
Topic: Rest API
Replies: 11
Views: 10299

Rest API

anyone successfully use the rest api? I've tried via web browser and curl but always comes up with a 404. I've tried enabling token authentication via $g_webservice_rest_enabled = ON; Still no dice. there is not much documentation on this feature either. any help or suggestions would be greatly appr...
by 7h3ju57
May 26, 2017 2:42 pm
Forum: Customizations
Topic: custom field auto incrementing number [FIXED]
Replies: 4
Views: 3640

Re: custom field auto incrementing number

only way i can think of is to have a file at the root of mantis with a variable. When you report a new issue it would pull that variables value and if you submit that issue then it overwrite the file with the new variable value. ie: var=2 + 1

not sure if this is the best way to implement though.
by 7h3ju57
May 24, 2017 2:15 pm
Forum: Customizations
Topic: custom field auto incrementing number [FIXED]
Replies: 4
Views: 3640

Re: custom field auto incrementing number

someone must have some idea how to implement this?
by 7h3ju57
May 05, 2017 3:49 pm
Forum: Customizations
Topic: custom field auto incrementing number [FIXED]
Replies: 4
Views: 3640

custom field auto incrementing number [FIXED]

hi all, im trying to get an auto incrementing numerical field that would start with the year plus a number that increments with each new ticket opened. for example, user opens new issue, and field autoinc would have an auto generated number of 2017-1 (which ideally would be first ticket of the corre...