code to retrieve a list of project assigned to an account(admin>tempotimesheets>AccountManager)


I have to retrieve a list a projects assigned to an account.How can i do that?Please suggest me any code which i can include in my script.

When i had to retrieve a list of groups assigned to a user i used a code which looks like this:

function getGroups(user)


var groups;

var fixedURL = "/rest/api/2/user?username=";


url: fixedURL+user+"&expand=groups",

type: 'get',

dataType: 'json',

async: false,

success: function(data) {

groups = data.groups.items;



return groups;


Can you please suggest me a code like this which brings me the list of projects assigned to an account?

Thanks in advance



1 answer

1 accepted

0 votes
Accepted answer
Timothy Chin Community Champion Jun 29, 2014

You can check Tempo's API using the REST Browser (

Hi Timothy,

I have installed REST API browser. But iam not sure how tod the code i want.When I click on send aftr setting parameters in the browser, nothing happens. I expect browser to give me the code after clicking on send.

Thank You,


Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,299 views 12 19
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