| View previous topic :: View next topic |
| Author |
Message |
gbrown
Joined: 06 Mar 2008 Posts: 18 Location: Hurd
|
Posted: Tue Mar 25, 2008 10:47 pm Post subject: Returning a list of Tasks |
|
|
Is there an API that returns all the Tasks that are available to all users or even better yet is there one that returns tasks bassed on name and not number?
I have looked but have had not luck. _________________ Grant Brown
Hurd Windows and Doors, Inc.
grant.brown@2behurd.com |
|
| Back to top |
|
 |
admin Site Admin

Joined: 01 Jan 1970 Posts: 4362 Location: Smolensk, Russia
|
Posted: Wed Mar 26, 2008 12:17 am Post subject: Re: Returning a list of Tasks |
|
|
| gbrown wrote: | Is there an API that returns all the Tasks that are available to all users or even better yet is there one that returns tasks bassed on name and not number?
I have looked but have had not luck. |
Please check CSVImport.findTaskIdByName - it search task by name. _________________ Maxim Kramarenko (mailto: maximkr@trackstudio.com)
TrackStudio - Hierarchical Bug & Issue Tracking Software
http://www.trackstudio.com |
|
| Back to top |
|
 |
gbrown
Joined: 06 Mar 2008 Posts: 18 Location: Hurd
|
|
| Back to top |
|
 |
admin Site Admin

Joined: 01 Jan 1970 Posts: 4362 Location: Smolensk, Russia
|
Posted: Wed Mar 26, 2008 7:13 pm Post subject: |
|
|
This is not possible using SOAP: you should list all tasks using filter, iterate them and select right by name. If you have a lot of tasks - this can be a slow way, direct DBMS access will be much better:
| Code: |
SELECT * from gr_task where task_name='name';
|
_________________ Maxim Kramarenko (mailto: maximkr@trackstudio.com)
TrackStudio - Hierarchical Bug & Issue Tracking Software
http://www.trackstudio.com |
|
| Back to top |
|
 |
gbrown
Joined: 06 Mar 2008 Posts: 18 Location: Hurd
|
Posted: Wed Mar 26, 2008 7:55 pm Post subject: |
|
|
Thank you for your help. That worked. _________________ Grant Brown
Hurd Windows and Doors, Inc.
grant.brown@2behurd.com |
|
| Back to top |
|
 |
|