Search found 6 matches

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

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
14 Jun 2017, 17:29
Forum: Customizations
Topic: custom field auto incrementing number [FIXED]
Replies: 12
Views: 31787

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
13 Jun 2017, 16:43
Forum: General Discussion
Topic: Rest API
Replies: 11
Views: 21519

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
26 May 2017, 19:42
Forum: Customizations
Topic: custom field auto incrementing number [FIXED]
Replies: 12
Views: 31787

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
24 May 2017, 19:15
Forum: Customizations
Topic: custom field auto incrementing number [FIXED]
Replies: 12
Views: 31787

Re: custom field auto incrementing number

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

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...