Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Get issues with updated specific custom fields rest api

Ward Schwillens_ Schwillie
Contributor
November 11, 2022

How can I get Jira issues with rest API when I only want issues with updates to specific (custom) fields that happened today? 

3 answers

1 vote
Yuliia_Borivets__SaaSJet_
Atlassian Partner
November 11, 2022

Hi @Ward Schwillens_ Schwillie 

I can suggest an alternative solution to get updates for the custom field for a specific time frame. If you are ok with add-ons, check out Issue History for Jira. My team developed it to get change reports for any list of issues. You can monitor changes for standard or custom fields.

change history report jira.png

Export to CSV/Excel is available.

You can check how it works for you with 30-day free trial.

1 vote
Karim ABO HASHISH
Community Champion
November 11, 2022 edited

Hi Ward,

To get JIRA Issues based on custom field changes, you could try the below approach

  1.  Query the issue history (change log) along with your JIRA Issues


    REST API Call example

    https://jira.atlassian.com/rest/api/2/search?jql=project=%22JRA%22&expand=changelog

    ChangeLog_REST_API.png

  2. Filter the JSON results based on custom field change Date.

  3. If you are willing to automate this solution, you could use PowerAutomate to make the REST API Call and filter the JSON data based on custom field change date with almost no code. Alternatively, you can handle it with script runner (groovy) or any other scripting language with some/little coding effort.

    Good Luck and let me know how it went

    Cheers,

    Karim
0 votes
Tom Lister
Community Champion
November 11, 2022 edited

Hi @Ward Schwillens_ Schwillie 

it's difficult to get hold of change data in the cloud.

I guess you've tried to= query the issue to update before sending, /rest/api/2/search with a jql parameter.

issue = DT1-10 and priority changed after startOfDay()

Although not all custom fields support the history searching.

The only option I know of is to expand the search to return the changelog data. Although I've only used that call with forge apps. (note the changelog can be 100's on entries)

const response = await api.asApp().requestJira(route`/rest/api/3/issue/${issueKey}/changelog`, {
Do you have access to apps like scriptrunner to create a scripted field that can be used in the search?
You might be able to do the same in automation based on field change to set a last changed for field.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events