Discussion

Ask a Question
ANSWERED

How to use TimeSpan in webhook filters?

I'm using webhooks to integrate with slack and I'd like to filter out those calls that are made in quick succession in order to reduce noise. I though I could achieve this by comparing previous modification date and current modification date and if the difference is shorter than 5 minutes I'd filter those calls out. But I cannot find documentation around TimeSpan in webhooks. I was wondering if there is a way to add a filter like this? ModifyDate - Previous.ModifyDate > TimeSpan.Minutes(5)
ANSWERED

What does the return code "forbidden" mean?

I am trying to submit a bug through the rest API. I am using the basic authentication method with a account we have created for this purpose. The credentials used to work. Now I am getting "forbidden" as the return code. What does this mean? Is there anywhere in the API documentation that explains the possible return codes on a per-API basis? Thanks, Steve
ANSWERED

Archive of former Developers group

Were can I find archive of topics already discussed with your developers?
ANSWERED

Best way to be notified of a card deletion

I'm implementing a mashup that adds some information to some views that uses the `cardsChanged` method available in the Board module `tp3/mashups/board` to get callbacks when a card is moved or changed and update the extra information accordingly. However, I don't get a callback when a card is deleted. Is there another listener I should use for detecting card deletions? Incidentally, I also discovered a bug when trying to use the `cardsChanged` method originally (at least in my version 3.8.10.26720). The call to `boardUtils.isCardReBuildOperation `was passing an object that was not being properly handled by the subsequent call to `getOperationLocation`. In my version `getOperationLocation` expected to receive an object with an `items` field that was assumed to be an array with at least one element that could contain the `location` field. However, `cardsChaged` was passing down a flat object that had the `location` field at the root of the object. I've worked around this, but wanted to report it in case it hasn't been fixed yet.
ANSWERED

How to get the current taskID after opening it?

When I open a particular task my custom mashup runs. Is there a helper to get the current task ID inside the mashup code? I see I can get it from the query params. Maybe there's a easier way to do it. Thanks
ANSWERED

Is there a library for C# models available?

Before starting converting or hand creating models in .NET I better ask first.
ANSWERED

Entity Templates not working for Create Bug through Test Case Run

Hi, We are using the Entity Templates Mashup and have a template for Bugs. This works great and provides a structure for collecting information about a Bug. However, if a Bug is created via a Test Case Run then our template is overridden with a template showing the Test Step in the Test Case where the Bug was created. It only does this for Test Cases that have Test Steps. Test Cases without Test Steps continue to use our template from the Mashup. How do we override the behaviour so that our template is used when a Bug is created via a Test Case Run (for a Test Case with Test Steps)? Thanks, Gavin
ANSWERED

Conditionally disable editing on some fields for entities for a role

Hello, I am trying to disable certain edit actions on specific entities for a specific role, while allowing other edit actions for the same role. I have tried to get this working with a Mashup but haven't been successful. The scenario I am trying to support is: Role Permissions: || Entity || Add || Edit || Delete || | User Story | No | Yes | No | | Bug | No | Yes | No | | Request | Yes | Yes | Yes | A user with this role should be able to create or edit anything on a "Request" entity (which works fine). A user with this role should only be able to add comments and change the state of User Stories or Bugs - they should *not* be able to edit the description, change assignees, or edit any of the custom fields. Does anyone have a suggestion for how to do this?
ANSWERED

Upload attachment using token

Hi, I want to upload an attachment from an external application. For authentication I would like to use an access token. But when actually using the URL given in the documentation (https://<domain>.tpondemand.com/UploadFile.ashx) it seems that only basic authentication or a session cookie are supported... Am I doing something wrong? Joachim
ANSWERED

Customisation of custom fields

Is it possible to create a "template" for a custom field, similar to Entity Template mashup? I want to have a custom field, call it "Diary" Everybody should certain information in it, for example: <p><strong>Description</strong> <p><strong>Version Introduced</strong> <p><strong>Link to Requirements</strong> I want to have such field for every User Story and Bug.