Hi,
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=";
AJS.$.ajax({
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
Regards,
Asif