Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

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

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


1 badge earned


Participate in fun challenges

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


Gift kudos to your peers

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


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!


Get Schedule of a team in Opsgenia

Hi, I am trying to get the schedule of a team for specific dates lets suppose 27 of the last month to 27 of the current month so I apparently use the month parameter and I add the date for some reason I always get the result from 31 for the previous month to next month is there a technical limitation that we can set custom dates from a specific date to a specific date.

Screen Shot 2023-09-20 at 2.08.45 pm.png

1 answer

1 accepted

1 vote
Answer accepted
Animesh Singh
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 21, 2023



Thank you for reaching Atlassian. I have tested the behaviour that you have mentioned and yes by design the API returns data in a period of "Week to date" a "month to date" and "year to date" which results in you seeing it returning the start and end dates as the ones you have correctly mentioned.

However, as your requirement is to get the results of a 30-31 day (a month) time frame, you can make use of interval, intervalUnit=days and specify the startDate to get the desired results.

Here is an example for the same (I am just filtering out the startDate and the endDate for the entire data this method lists out),

# curl --silent -X GET '' --header 'Authorization: GenieKey Your_API_Key_here' | jq '.data.startDate, .data.endDate'


I hope this helps and I wish you an amazing day ahead!

Best Regards,


Cloud Support Engineer

Hi Animesh your answer worked for me however adding to above I have a small query is it possible to define a range to get schedule like If i want to get schedule from 2023-08-21T00:00:00Z to specifically 2023-08-23T00:18:00Z so for 2 days and some hours till 23/08/2023 till 6pm can we define a boundry in the api call such that i porvide a startv date and end date and get the roster i think current intervals are day , date , month and in documentation there isn't mention an end date parameter. 

Animesh Singh
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Sep 25, 2023

Hello again,

Hope you are doing great. Your usecase is as I understand to get schedules for 2 days and 18 minutes of timeline as an example. You are correct the interval unit is as mentioned below,

{"message":"intervalUnit should be one of [days, weeks, months]","took":0.008,"requestId":""}

Which means for getting the schedule for 18 minutes on top of day 2, you will be needing to get the schedule timeline for the 3 days and then go ahead and filter the information as required.

I hope this helps and have a great day ahead!



Cloud Support Engineer

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events