How can I know if a tempo account can be used in a project via rest?

Fernando Boucquez (PPL) July 4, 2016

With the https://thehost.atlassian.net/rest/tempo-accounts/1/account rest endpoint you can retrieve all the account. Is it possible to filter accounts by project? Then I can use the account id in the custom field when creating editing issues.

1 answer

1 accepted

1 vote
Answer accepted
HelgaJ July 4, 2016

Hi Fernando

By adding /project/[projectId]/ to the URL, you can get accounts by JIRA project. 

For more information about this, see: http://tempo.io/doc/accounts/api/rest/latest/#297254783. Please note that the REST API is subject to change. 

Best regards,
Helga
Tempo 

Fernando Boucquez (PPL) July 4, 2016

Awesome! thank you for your link. 

I've just noticed a bug, you may want to report it. 

An existing but unlinked account can be set to an issue via rest

JIRA issue create rest is allowing me to set the account field with the id of an unlinked account without any error. Something not possible via UI, leaving in issue in a inconsistent state. 

I'm using JIRA cloud.

Some screenshots:

Selection_017.png

Selection_016.png

Selection_018.pngSelection_020.png

HelgaJ August 3, 2016

Hi Fernando

We have looked into this and confirm this to be a bug. This has been registered to the Tempo Accounts project as a bug. We will add the comment including the fix version upon release, thank you for bringing this to our attention. 

Best regards,
Helga
Tempo 

Fernando Boucquez (PPL) August 3, 2016

Hi Helga, another improvement request. Method /project/[projectId]/  does not return the global accounts so in order to know all the possible accounts for a given project I need to perform 2 rest calls. Could you add a query parameter like includeGlobal=true to the /project/[projectId]/  rest method (default false)?

HelgaJ August 5, 2016

Hi Fernando

If you wish us to create a new feature request requesting this function, please let us know and we can create it for you.

If you wish to create the feature request yourself, you can do so via our JIRA.

  1. Go to https://tempoplugin.jira.com/secure/Dashboard.jspa
  2. Select "Create" to create a new issue
  3. The following fields need to contain information: Project (select the appropriate product) - Issue type - select "Improvement" Summary - give a summary of your feature requestDescription - give a description of your feature request - Save the request

Tempo product owners review all requests for Tempo products and if the request is within the scope of the roadmap it is transitioned from the Needs Triage status.

Best regards
Helga
Tempo 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events