Forums

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

How to add a custom JQL function to search for history of the custom field.

nallu February 14, 2019

Hi, 

I have a requirement to develop a custom JQL function that will search for history of custom fields. 

Ex: custom_field_X was 18.11

This should list out the issues which had value as 18.11 for  custom_field_X. 

 

Can anyone please tell me where should i start and suggest me the right tutorial/document?

1 answer

0 votes
Moses Thomas
Community Champion
February 14, 2019

@nallu  Why not use the built in  issueHistory() function  which  displays  recently viewed  issues so   this  function issueHistory() returns up to 50 issues.

so  you  can  write  a filter like this 

issuekey in issueHistory() AND  custom_field_X = "2 - Critical"

at-least  you  can get  up  50 issues.  instead of developing your  own plugin.

but  if  you  insist  then check  this out  this could be  helpful

https://developer.atlassian.com/server/jira/platform/adding-a-jql-function-to-jira/

 

best regards,

Moses

Suggest an answer

Log in or Sign up to answer