Discussion

Ask a Question
ANSWERED

Attachment Upload via URL for Targetprocess API

I am in the process of developing an integration that involves programmatically uploading attachments to a bug ticket within Targetprocess using the API. I have been utilizing the UploadFile.ashx endpoint for this task. My current approach involves fetching the file content from a URL and then uploading it as an attachment to a specific bug ID using a POST request with multipart/form-data. <br> Could you please advise on the following points: 1. Does the UploadFile.ashx endpoint support this method of uploading files using content fetched from a URL? 2. Are there any known issues or limitations with the UploadFile.ashx endpoint that might result in empty file contents upon upload? 3. Can you confirm whether there are any additional headers or metadata that need to be included in the POST request to ensure the file content is uploaded correctly? 4. Here is a part of the code I use to upload : ``` def upload_attachment_to_targetprocess(bug_id, attachment_url): targetprocess_domain = os.environ['TARGETPROCESS_DOMAIN'] targetprocess_access_token = os.environ['TARGETPROCESS_ACCESS_TOKEN'] api_token = os.environ.get('AIRTABLE_API_KEY') headers = { 'Authorization': api_token } response = requests.get(attachment_url, headers=headers, allow_redirects=True) if response.status_code != 200: print(f"Failed to download attachment. Status Code: {response.status_code}") return None file_content = response.content if not file_content: print("No content in file") return None print(f"Size of the content retrieved: {len(file_content)} bytes") file_name = attachment_url.split("/")[-1] content_type = mimetypes.guess_type(file_name)[0] or 'application/octet-stream' print(f"Guessed Content-Type: {content_type}") upload_url = f"{targetprocess_domain}/UploadFile.ashx?access_token={targetprocess_access_token}" files = {'file': (file_name, file_content, content_type)} data = {'generalId': bug_id} try: response = requests.post(upload_url, files=files, data=data) response.raise_for_status() return response.json() except requests.exceptions.RequestException as error: print(f'Error uploading attachment to Targetprocess: {error}') return None ``` <br>
ANSWERED

Best way to move from project to agile product process

I've been reading alot about the Targetprocess "project-to-product" agile transition in several company blog articles. I am struggling with the best place to start. Any suggestions? Is this really about moving to a more agile process, such as SAFe or am I missing something?

Combining GitHub integration with Azure DevOps integration

Hi, We are considering using the TP integration with GitHub and Azure DevOps. I've managed to connect the PR's from GitHub with TP this was simple. The next thing I'd like to do is to connect the stories and issues with the deployment pipeline so their statuses are automatically changed when the code deploys to the environments. What I'd like to do is to move the Story from one status to another after each of the deployments between different environments. So example. The code to related story has been merged in Github to the develop branch, at this stage I'd like to move the status from status1 to status2. When we merge the code then the build is starting in the Azure DevOps, once it's build the deployment to our QAT env is kicking off, after it's done I'd like it to trigger another change status: status2 to status3 Is it possible to achieve with the native integrations? How do I combine those two services?
ANSWERED

How to display the multiple entities tab ?

Desr targetprocess-team, We have created a custom field for our project which has the field type "Multiple Targetprocess entities". ![](https://files.readme.io/881b60c-image.png) According to the documentation, a new tab "multiple entities" should be displayed. However, this tab is missing. Is it possible to activate it somewhere or how does it work? ![](https://files.readme.io/fe68eed-image.png) I hope you can help us. Best regards Corinna
ANSWERED

Test Run Export with Evidences

Hi , We are using TargetProcess for executing our test cases and would like to export the Test run Or group of Test runs with evidences into a read only format like PDF. Is there a way to do it in TargetProcess ? we need to do this to submit our Validation Package to our clients/auditors so that they can review our test executions for our Product release. please help with a response ASAP.
ANSWERED

update the field inside the portfoilio epic in Schedule/Roadmap

i wanted to update the field inside the portfoilio epic in Schedule/Roadmap i wanted to update the fields can you tell me how can i update those fields currently i am, using this url or need to modify the url to fetch the fields inside the Schedule/Roadmap like FC Release Date Last Change FC Release Date FC Deviation Completion date Planned start Planned end <https://tpdomend.com/api/v2/PortfolioEpics/>
ANSWERED

Create a UserStory when Request has been created

Goodnight, I need to create an automatic rule that allows me to create a user story when a request is created. This user story must be created in the "Default" feature of the project that was selected in the request. The user story must have the title, description, attachments, comments and team registered in the request. Then I need all updates made to the user story to be reflected in the request and vice versa Thank You
ANSWERED

Assigned Resources

Hi, Is there a way via api to obtain the details of the assigned users/Teams to a user story?
ANSWERED

Splitt comments in UserStorys for new itteration

Good day I would like to find out how to create an automation rule that will: - carry over the existing comments on UserStories to the new Team iterations UserStories when closing an iteration and the UserStories get split.
ANSWERED

In a report How to calculate the number of days delayed

In a tabular report I want to have the number of days delayed at epic level based on the Planned End date and actual end date How can i put this logic in the report? - If planned end date is already due and still the actual end date is blank then - the number of delay days = Now() - Planned end date - Also If planned end date is less than the Actual end date then - the number of delay days = Actual end date - Planned date I have used the below mentioned code but it is wrongly calculating when planned end date = actual end date and also when planned end date is already due and still the actual end date is blank the number of days calculated is usually 1 day less ``` CASE WHEN [Planned End Date] < NOW() THEN DATEDIFF( [Planned End Date], NOW(), 'day' ) WHEN [Planned End Date] < [End Date] THEN DATEDIFF( [Planned End Date], [End Date], 'day' ) ```