Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,460,887
Community Members
 
Community Events
176
Community Groups

JiraAlign api to get active timetracking users

Hi Team,

                I am trying to fetch the users from API enabled for time tracking. I am using the link below, but it is not sending the correct results. I verified the results with the filters on the UI page, which don't match. Any help here is highly appreciated.

 

https://mysite.com/api/users?isTimeTracker=true

 

Thank you,

Manoj

2 answers

1 accepted

0 votes
Answer accepted

The correct syntax for the isTimeTracking parameter is:

isTimeTracking eq 1
  • 1 = true
  • 0 = false

A functional cURL call is demonstrated below:

curl -X GET "https://instance.jiraalign.com/rest/align/api/2/Users?filter=isTimeTracking%20eq%201" -H "accept: application/json;odata.metadata=minimal;odata.streaming=true" -H "Authorization: bearer MyObfuscatedToken"

You can expand the demonstrated filter to better match other needs, eg. active users as opposed to all users.

Please refer to Help Center articles 10X: API 2.0 for further details on filters, query syntax, and encoding.

This solution worked for me. Thanks a lot, @Rodrigo Cortez 

Like Rodrigo Cortez likes this
1 vote

Hi Manoj,

The API call will fetch all the user records (irrespective of the user is "Active" or "Deactivated"). So you will find more users through API call than what you will see in the (Admin-->People) list.

Make sure you consider deactivated users as well;

Go to Admin-->People

Apply Filters-->"Deactivated"=YES

 

Hope this helps.

Regards,

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events