Forums

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

What would be the Jquery code to know any field value update in JIRA?

Deleted user June 19, 2019

I want to know the Jquery code which can give me data updated in last 7 days.

Example:- If there is a field name- 'Severity' in Issue Type 'Bug' in JIRA. If any user updates the severity from 'High' to 'Medium' then i want to get such data using Jquery.

Which bugs are updated in last 7 days from High to Medium?

Please let me know if you can help.

1 answer

1 accepted

0 votes
Answer accepted
Iago Docando
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 20, 2019

If you just want to get the list of issues updated in the last 7 days that's pretty simple:

updatedDate >= endOfDay(-7)

 

That tracks any change to any issue field, status, comments...

 

For the other example you present is not that simple. There some operators like CHANGED or WAS that can search in the history of the issue but they don't work with just everything. From the top of my mind you can use those with priority and status but they don't support custom fields. It could be something like:

status changed from A to B after endOfDay(-7)

 

In order to do something like this I guess you'll need to do something quite complicated like:

  1. create custom date fields for those fields you want to track (fieldA_updated)
  2. make sure that the changes in the fields you want to track are performed via a transition screen. It could be a transition to the same status called "update info" or similar
  3. add a postfunction to each of those transitions where the fields "fieldX_updated" take the current date.
  4. once this is done you can search fieldX_updated >= endOfDay(-7)

 

That's all I can think of at the moment. Hope it helps.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events