Forums

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

issueFunction in dateCompare example

Daria Pavlova
October 25, 2021

Dear community!

 

Here I am again searching for a help.

I am trying to use issueFunction in dateCompare in my JQL request and I am repeatedly getting errors instead of what I want. 

For example I try to find issues that had not been commented within one week of creation:

project = Operations AND issueFunction in dateCompare("created +1w < firstCommented")

and I get:

Scripted function "dateCompare" compilation failure. Contact administrator and check logs. Message: The comparison must contain exactly one comparison operator which is either >, <, =, <= or >=.

Can someone give me a whole line of successful JQL request so I can repeat it with my own data?

Just cannot get how it works. Please help. Thank you! 
 

4 answers

0 votes
Muzeeb Mohammed
June 22, 2016

This issue is resolved. I developed this plugin using command atlas-create-refapp-plugin-module  and I executed my plugin using command atlas-run, it is running inside refapp web application. It didn't download local JIRA instance.

That said, I have packed my plugin using command atlas-mvn install and explicitly deployed plugin(jar) file to my local JIra Instance. Now I am able to invoke my custom Rest Resource.

 

Thanks for your help.

0 votes
Petar Petrov (Appfire)
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 Champions.
June 22, 2016

The atlassian-jira.log file is located in target/jira/home/log - check if for errors, especially when you start JIRA.

0 votes
Muzeeb Mohammed
June 21, 2016

I am running this plugin in JIRA Standalone mode. I am executing command "atlas-run" from command line. I don't see 'atlassian-jira.log' file in TARGET directory. 

I only see the following logger messages at path 'jiraissuecrud\target\container\tomcat8x\cargo-refapp-home\logs\localhost_access_log..2016-06-21.txt'

 

127.0.0.1 - - [21/Jun/2016:15:01:47 -0400] "GET /cargocpc/index.html HTTP/1.1" 200 124
0:0:0:0:0:0:0:1 - - [21/Jun/2016:15:01:58 -0400] "GET /refapp/rest/jiraissuerest/1.0/message HTTP/1.1" 404 1170
0:0:0:0:0:0:0:1 - - [21/Jun/2016:15:02:08 -0400] "GET /refapp/rest/jiraissuerest/1.0/message HTTP/1.1" 404 1170

0 votes
Petar Petrov (Appfire)
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 Champions.
June 21, 2016

What's in the atlassian-jira.log file?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events