Expand my Community achievements bar.

SOLVED

Fetching Request details

Avatar

Level 2

Hello,

 

1. Could you please help using API, how to fetch request details per project.

 

https://veridiancu.my.workfront.com/attask/api/v18.0/proj/5b4f47cc0..............&sessionID=535fc8de....

 

2. Under request blog I have many issue how to get issue ID under one dsahboard ID, 

 

https://veridiancu.my.workfront.com/attask/api/v18.0/ptltab/search?id=5f3f22b50092a............&sess...

 

3. Under request we have PMO Request Form, how to access to that information using API.

 

Thanks,

Divya Anand.

 

 

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hello,

 

1. request details per project

 

Here you have two possibilities:

 

a) as API v18 does not provide a possibility to fetch requests using the PROJ endpoint, you need to use the endpoint OPTASK, which is the one for issues / requests.

https://instance.my.workfront.com/attask/api/v18.0/optask/search?projectID=<projectID>&fields=*


b) alternatively you can use the (unsupported) internal api, which allows using the endpoint PROJ:

 

https://instance.my.workfront.com/attask/api-internal/proj/<projectID>?fields=issues:*

 

 

Concerning 2 you need to be a bit more specific.

 

It is best if you familiarise yourself a little with the API Explorer.

 

 

 

3. Getting custom form field values

 

Field values from custom forms are stored in the collection parameterValues.


https://instance.my.workfront.com/attask/api/v18.0/optask/search?projectID=<projectID>&fields=parameterValues:*

 

 

Regards

Lars

View solution in original post

3 Replies

Avatar

Correct answer by
Level 10

Hello,

 

1. request details per project

 

Here you have two possibilities:

 

a) as API v18 does not provide a possibility to fetch requests using the PROJ endpoint, you need to use the endpoint OPTASK, which is the one for issues / requests.

https://instance.my.workfront.com/attask/api/v18.0/optask/search?projectID=<projectID>&fields=*


b) alternatively you can use the (unsupported) internal api, which allows using the endpoint PROJ:

 

https://instance.my.workfront.com/attask/api-internal/proj/<projectID>?fields=issues:*

 

 

Concerning 2 you need to be a bit more specific.

 

It is best if you familiarise yourself a little with the API Explorer.

 

 

 

3. Getting custom form field values

 

Field values from custom forms are stored in the collection parameterValues.


https://instance.my.workfront.com/attask/api/v18.0/optask/search?projectID=<projectID>&fields=parameterValues:*

 

 

Regards

Lars

Avatar

Community Advisor

@lgaertner 

why do you think PROJ is no longer supported in API v18?

 

Avatar

Level 10

Hello Rafal,

 

No, that wasn't what I was trying to say. Sometimes it's not easy for me to express myself in English.
I just meant that you can't query issues / requests via the PROJ endpoint, at least I don't know of a way.
So my suggestion was that you either use the unsupported-api for this endpoint, or make the query via the OPTASK endpoint.

 

Regards

Lars