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

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

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 

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

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 

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)?

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
Community showcase
Published Nov 29, 2018 in Marketplace Apps

How to set up an incident workflow from the VP of Engineering at Sentry

Hey Atlassian community, I help lead engineering at Sentry, an open-source error-tracking and monitoring tool that integrates with Jira. We started using Jira Software Cloud internally last year, a...

1,148 views 0 8
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you