It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

CommentedBy, CommentedOn don't seem to work

Hi everyone,

I'm looking to perform searches for results using the commentedBy and CommentedOn JQL keywords.

My understanding is that:

  1. CommentedBy should be able to match a person - or also work with the EMPTY command
  2. CommentedOn should be able to match a date - or also work with the EMPTY command

Yet when searching a project that I know has issues with comments on them, it's still not finding any results.

Any ideas on what is occurring?

2 answers

1 accepted

0 votes
Answer accepted

Hi @Andrew_Buckley

Or if this isn't ScriptRunner, what app are you using? These aren't standard JQL functions for Cloud.

Ste

Thanks guys.

We do have ScriptRunner installed, so this is why the 'non-standard' JQL keywords for these commands are appearing in the advanced search field.

The issueFunction commands mentioned above do work as expected when using the on-premise version.

Based in the ScriptRunner documentation: "Comparison with ScriptRunner for JIRA Server". The commands being used in cloud are correct, it's simply not returning any matches when looking at comments.

e.g.

assignee = currentUser() [works in cloud]

commentedBy = currentUser() [does not work in cloud]

I'll ping the ScriptRunner support team to see if they have any ideas but will close this ticket off.

0 votes

Hello,

Do you have scriptrunner ? It's seems that you are using it.

Try this :

issueFunction in commented('by currentuser()')
issueFunction in commented('after startofmonth()')


 

You can look at this documentation

 

https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_commented

 

Hope this helps

Suggest an answer

Log in or Sign up to answer
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you