Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
gggar
Helper I
Helper I

For Jira API, I want to limit rest/api/3/search response to only fields.created = current year

Hello,

I am using this API call in Power BI:

path = "rest/api/3/search?maxResults=100&jql=",

jql_query = "issueType=Bug&fields=project,created,assignee,status,priority,reporter,creator&expand=changelog",

fields_query = "project,created,assignee,status,priority,creator,reporter",

Source_new = Json.Document(
Web.Contents(host,
[
RelativePath=path,
Query=[issueType="bug", fields=fields_query, expand="changelog"]
]
)
)

 

I want to limit the bug records returned to only bugs created this year.

 

Anyone has experience with Jira API and can give suggestions? Any help will be greatly appreciated! Thank you.

1 ACCEPTED SOLUTION
gggar
Helper I
Helper I

Hi @v-shex-msft thanks for the reply.

Anyway, I've solved the issue using:

createdDate>%3D'2020%2F01%2F01'


The date format need to be escaped apparently.

View solution in original post

2 REPLIES 2
gggar
Helper I
Helper I

Hi @v-shex-msft thanks for the reply.

Anyway, I've solved the issue using:

createdDate>%3D'2020%2F01%2F01'


The date format need to be escaped apparently.

v-shex-msft
Community Support
Community Support

Hi @gggar,

Any logic date fields include in your data source to remark the created date? If that is the case, you can invoke that field with the operator in 'query' options to filter records based on date values.

Advanced search reference - JQL fields | Jira Software Cloud | Atlassian Support

Advanced search reference - JQL keywords | Jira Software Cloud | Atlassian Support
Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.