Welcome to the Targetprocess developer hub. Here you'll find comprehensive guides and documentation to help you start working with Targetprocess as quickly as possible and support you if you get stuck. Let's jump right in!
Greetings. I've done my share of TP mashups, but I now need to access an external SQL DB from my mashup. Ideally I'd love to call functions I've implemented in a Python script, but I don't see a way to call python from a mashup. My second best approach would be to execute my SQL queries directly from my mashup JS, but it's not clear if that can be done either. If all else fails I think I'll need to use a REST API into the SQL server, but that would only be a last resort. Any advice/guidance would be appreciated. Thanks
Posted by Pete S. 2 months ago
My organization planned on adding the Github integration. Because we have a highly customized workflow, I planned on implementing an automation rule with JavaScript to calculate the new TargetProcess state (see example here: https://dev.targetprocess.com/docs/state-change) I would like to test this out before I add the integration to our organization, because I'd like to avoid any state changes that may automatically happen when I turn it on (and these are hard to reverse). I would also like to avoid other users seeing and using this integration before I have a chance to test out our workflow. Is there a way to test this logic in a sandbox or test environment?
Posted by abhishek 4 months ago
I have two projects sharing the some milestones. When I do a query for the milestones I get different results. In Project 1234 I get all milestones. In Project 5555 I only get the ones that are not included in 1234. My Query looks like this (with some additional paramters): /api/v1/projects/1234/releases In the web interface I can see that 1234 is listed first on that milestone. This looks like a bug to me. Is there any way to get all releases connected to 5555 regardless of which other Projects they are also connected to?
Posted by Olle Liljefeldt 10 months ago
In a TestPlan it is possible to control the order the child TestPlans and TestCases are listed, is it possible to retrieve this order via the API v1 For example when getting a TestPlan is there a field to include which indicates it's order position in it's parent TestPlan?
Posted by Neil 10 months ago
Hello! We recently changed our TP installation so that it uses Azure AD authentication with SSO/SAML. We have some C# .net applications that connects to TP via the REST API. Would it be possible to authenticate via the Microsoft Identity Framework? I did some tests using the AcquireTokenInteractive method against the TargetProcess app in Azure AD, and has succeded in getting an access token. However, this token is not respected by TP when added to the headers (Bearer). Would it be possible to use this approach or is it TP's own access tokens that is the only solution?
Posted by Anders Stenman about a year ago
Hi, I am trying to upload attachment to UploadFile.ashx with token authentication (Token was obtained for a system user) but the response returned is Unathorized. However when I use my access token the response returned is Success. What can be the issue here with my token authentication please? (Request url for upload looks like this: https://mysite.tpondemand.com/UploadFile.ashx?token=MYSYSTEMUSERTOKEN)
Posted by Filipek Kaduch about a year ago
Hi all, related with TimeTracker mashup, what about if I want to get all entities assigned to me (task, request..) in the current team iteration without filtering on this condition: "The responsible role for the current state of the item matches the role that the current user is assigned as." I'm not able to modify the query opportunely. Thanks all
Posted by Andrea Baglioni about a year ago
I am trying to write an integration to record my test plan runs into the targetprocess system. However I am running into a road block when creating/recording the status of a test case. I am calling the TestPlanRuns Endpoint with the following url/body. Endpoint: "/api/v1/TestPlanRuns/?token={ApiToken}" Body: {"TestPlan": {"Id": 3456}} When I call this endpoint it starts a testplan and I get a response that has the TestPlanRunId for the TestPlanId that was passed in the request. However, I do not get the TestCaseRunIds with their matching TestCaseIds for the newly created Run on the response. I need this info to be able to record the status of each TestCaseId onto that test plan run. Note: I have tried calling the EndPoint with the following Url like the documentation(https://dev.targetprocess.com/docs/api-v1-usecases-testing-module) has stated "/api/v1/TestPlanRuns?resultFormat=json&resultInclude=[Id,TestCaseRuns[Id,TestCase]]/?token={ApiToken}". However, I get an error when calling the endpoint like this. Is there Something else I need to pass on the request to get this information or is there an endpoint I can call to get the pairing of TestCaseIds:TestCaseRunIds for a particular TestPlanRunId?
Posted by Vinny about a year ago
I have a project where its process does not support iterations. I created a task in this project which is in the Open state but it's not showing up in the time tracker table. I tracked it down to the following line in the Time Tracker mashups `loadAssignables()` function. ``` // Abort if // it's an initial state ('Open' is an initial state) AND // it's not assigned to an iteration if (a.EntityState.IsInitial && a.Iteration == null) { return; } ``` What this should really be is: ``` // Abort if // it's an initial state ('Open' is an initial state) AND // it's not assigned to an iteration OR // its project process does not support Iterations if (a.EntityState.IsInitial && a.Iteration == null && <process support iter>) { return; } ``` How do I do this? There's little to no documentation on the Process entity. It'd be nice if I can do this ``` if (a.EntityState.IsInitial && a.Iteration == null && a.Project.Process.Practices.find(function(elem) { return elem.Name == "Iterations"; }) == null) { return; } ``` However, the Project object does not contain a reference to the Process. How do I go about doing this? Thanks
Posted by Chris Khoo about a year ago
I am really impressed by your "Copy link" tooltip that copies the link to an entity to clipboard. This functionality is very challenging when trying to implement it for various browsers. I installed your tau-tooltip from github, but I struggle to implement the copying. Would you be so kind and help me a bit?
Posted by Vitezslav about a year ago
I would like to create a markdown template and apply in the description of tasks. I don't want to write main template for each task. Is that possible to create a template inside of target process and apply it ?
Posted by Ertugrul Balveren about a year ago
I want to disable some field types from a multi-selection list when NONE or NOT RELATED is selected. I want to steer clear of any confusion because selecting NONE and other field types in the same category won't make sense.
Posted by Enat about a year ago
Hi, I want to do something like the Timesheet, what is the request to send in order to get the time per day per entity within the current month please ? I can get a User using : GET /api/v1/Users?&include=[Id, Email]&where=Email eq '[email protected]' But i don't know how to add these additional information. Thank you
Posted by Clara Flitane about a year ago
I wouldl like to access API through access_token generated from my profile but when I try to I always end up with Unauthorized error. I have single-sign-on enabled and my query looks like this: "/bugs/&access_token={token_value}=". However I am able to access API with my TP credentials but I need to get it done with access_token.
Posted by Filip Kaduch about a year ago
Hi everyone I want to use Github & tp integration with this scenario When a developer creates a pull request → TargetProcess creates a comment with a link on this pull request in the certain ticket Could you help me and describe how can I realize that scenario with tp's integrations
Posted by George about a year ago
Hello I am trying to change Entity state field of bug using curl. curl -g --header "Content-type: application/json" --url "https://photomasterlabs.tpondemand.com/v1/Bugs/21716?format=json&access_token=TOKEN" --data "{EntityState:{Id:157}}" TOKEN - valid token But every time I get "Sorry, you do not have permissions to access requested resource." What is the problem with such using of api?
Posted by Pavel Kubitski about a year ago