Help adding a docket id to the name field for projects/tickets
Page: 1, 2
Hello,
We just started using ac, and would like to make a change to work for us.
I would like to automatically add a docket id to the name field upon project/ticket creation. The idea behind adding it to the name field, is it works with the system and from that point on it's just treated as a title (thus searchable and easily editable, and doesn't effect anything else down the chain).
I was thinking of grabbing the name field and amending it before AC inserts it to the database. After looking into this and searching I am bumping into some difficulty. In an effort to keep this post as clear & concise as possible, I would rather not clutter it with possibly irrelevant info. So could someone please help/point me in the right direction in order to do this and best integrate it with ac.
Many Thanks,
Nick
The other option would be a feature request for ac to have a docket id which displays under projects & tickets and is searchable. However not everyone would necessarily use this, thus why I thought of just adding it myself.
We just started using ac, and would like to make a change to work for us.
I would like to automatically add a docket id to the name field upon project/ticket creation. The idea behind adding it to the name field, is it works with the system and from that point on it's just treated as a title (thus searchable and easily editable, and doesn't effect anything else down the chain).
I was thinking of grabbing the name field and amending it before AC inserts it to the database. After looking into this and searching I am bumping into some difficulty. In an effort to keep this post as clear & concise as possible, I would rather not clutter it with possibly irrelevant info. So could someone please help/point me in the right direction in order to do this and best integrate it with ac.
Many Thanks,
Nick
The other option would be a feature request for ac to have a docket id which displays under projects & tickets and is searchable. However not everyone would necessarily use this, thus why I thought of just adding it myself.
Thanks Ilija
I'll give that a try.
As for docket id, its just a unique number that associates with each project/ticket/workorder etc....
Handy for referencing things in the future, both for duplication, or billing purposes.
IE: When 6 months or 2 years later a client comes back and says they need another ad like they ran in a magazine/paper last year, (and we think there are 100+ ads we have run), its helps be more specific. Or when a client asks why x overran it's budget, we can reference it accurately recall timecard info and remind them of their 100 revisions. You get the idea...
Many agencies/shops use a system like this (or they should).
Thanks again,
N.
I'll give that a try.
As for docket id, its just a unique number that associates with each project/ticket/workorder etc....
Handy for referencing things in the future, both for duplication, or billing purposes.
IE: When 6 months or 2 years later a client comes back and says they need another ad like they ran in a magazine/paper last year, (and we think there are 100+ ads we have run), its helps be more specific. Or when a client asks why x overran it's budget, we can reference it accurately recall timecard info and remind them of their 100 revisions. You get the idea...
Many agencies/shops use a system like this (or they should).
Thanks again,
N.
I thought of that, only problem is they are each unique, and could/would overlap.
I was just going to have another table that auto inc and pull from there.
Thanks again for your help.
N.
I was just going to have another table that auto inc and pull from there.
Thanks again for your help.
N.
Hello Again Ilija
Tried to put in the code today.
Ran into an issue.
Docket id will get set later, I just wanted to run a test. However I can't seem to amend the name. I tried a few variations, however none seemed to work. Once again I will try and avoid clutter with everything I tried. Above is just a sample of a variation. Any help would be appreciated.
Thanks,
Nick
Tried to put in the code today.
Ran into an issue.
if(instance_of($object, 'Project')) {
$docket_id = '12345';
$name .= " - [" . $docket_id . "]";
} elseif(instance_of($object, 'Ticket')) {
// ...
} Docket id will get set later, I just wanted to run a test. However I can't seem to amend the name. I tried a few variations, however none seemed to work. Once again I will try and avoid clutter with everything I tried. Above is just a sample of a variation. Any help would be appreciated.
Thanks,
Nick



