Forums

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

JQL Used for The Jira Service Management Portal to Show Number of Issues

Jesse Ortega Jr
Contributor
June 10, 2024

The JQL that is used to pull issues into the JSM Portal needs to be modified. It is pulling tickets with the status of Closed when looking for Open.

Is it possible to modify the JQL so it looks for the status of issues?

Here is a snapshot of what I mean. 

SDportal.png

2 answers

2 accepted

2 votes
Answer accepted
Mikael Sandberg
Community Champion
June 10, 2024

If you look at the request in Jira, not the Portal, is the resolution set on those closed ones? The Portal filter will show them if the resolution is not set, that is how Jira determine if a request is done or not.

Jesse Ortega Jr
Contributor
June 10, 2024

I am needing this for the Portal.

Yes, I have seen that Jira goes by the resolution field, but these two tickets were closed without a resolution. Therefore, I would like to modify the JQL used for the portal to search for the status of Closed. Is this possible? Or how can I get a Resolution added once an issue is in the status of Closed? 

Mikael Sandberg
Community Champion
June 10, 2024

The JQL used on the portal cannot be changed. What you can do is add a transition in your workflow that sets the resolution as described in this KB, Best practices on using the "Resolution" field. Another option is to create an automation that sets the resolution for you, either as a scheduled one or an manual one. 

Jesse Ortega Jr
Contributor
June 11, 2024

Thanks Mike. I implemented the fix from the article, and all is good.

Like Mikael Sandberg likes this
1 vote
Answer accepted
Joseph Chung Yin
Community Champion
June 10, 2024

@Jesse Ortega Jr -

In JQL, you just need to construct the following search using JQL syntax of 

project = "<your project key>" and status = CLOSED (This will returns the issues result of all issues that is CLOSED in the project)

You need to review your JQL in question to see how the check for status is currently configured.

Here is the reference guide on how to use JQL -

https://support.atlassian.com/jira-software-cloud/docs/what-is-advanced-search-in-jira-cloud/

Hope this helps.

Best, Joseph Chung Yin

Joseph Chung Yin
Community Champion
June 10, 2024

@Jesse Ortega Jr 

I also agreed on what @Mikael Sandberg suggested on Resolution field check in the JQL.

Best, Joseph

Joseph Chung Yin
Community Champion
June 10, 2024

@Jesse Ortega Jr -

Based on your reply against @Mikael Sandberg suggestion, the root problem is that it seems (for those two specific issues) the WF used is not configured properly.

Typically, the WF configuration where issues transition into the terminal status, it is there the resolution value is set.  Resolution value should never be controlled outside the WF.  There may be also a possibility where the project has an automation rule (outside of the WF) configured in properly. 

I would recommend you to review your WF configuration and ensure that the issue transition to the terminal status, the resolution value is set properly.

To fix your two existing "CLOSED" issues, you need to re-open it and re-close it again after you have your WF corrected where when moving issues to the CLOSED status has the resolution value set.

Hope this helps and makes sense.

Best, Joseph 

Joseph Chung Yin
Community Champion
June 10, 2024

@Jesse Ortega Jr -

Lastly, I don't believe you cannot change the JQL used in the Portal UI based on my knowledge/experiences with JSM.  The Portal UI processing logic is default and built-in.

Best, Joseph

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events