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

This widget could not be displayed.
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
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

234 views 1 3
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