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 vote
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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

139 views 1 17
Join discussion

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