Forums

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

How do i filter value from custom field object in JQL filter (Custom Field Suite)?

RAFAEL LEITE ANTONIO April 11, 2023

Hello. I'm using the Custom Field Suite addon to create a custom field of the type "Jira Expressions field" and I would like to use the value of this field in a JQL query.

I'm trying to created a field that identifies the worklog entries generated after the start of the current sprint and now I would like to use this field in a Gadget on my dashboard to add the hours used, but I cannot access the value.

Currently the filter looks like this:

issue.worklogs?
.filter(c => c.created > issue.sprint.startDate)?
.reduce((result, worklogItem) =>
(result+worklogItem.timeSpent),0)

I also tried to create this way. The field was generated correctly but I can't read the data either:

issue.worklogs?
.filter(c => c.created > issue.sprint.startDate)?
.reduce((result, worklogItem) =>
result.set("Total",Number((result["Total"] || 0) + worklogItem.timeSpent))
,new Map())


On the screen it appears correctly:

Captura de tela 2023-04-11 113823.png

And analyzing the JIRA return in the API I see this:

Captura de tela 2023-04-11 114107.png

References:

Jira Expressions Types

Jira Expressions 

Please can you help me to solve this problem?

Thank you very much!

2 answers

0 votes
Kyle Santowski
Contributor
April 20, 2023

Hi Nicolas!

Yes. I am waiting for my ticket to be answered.

I'm new to Jira and trying these customizations. That's why I was in doubt if it's a particularity of the addon or if I don't know how to use it in Jira.

Thank you!

0 votes
Nicolas Grossi
Banned
April 11, 2023

@RAFAEL LEITE ANTONIO Welcome! Did you contacted the provider support team: https://marketplace.atlassian.com/vendors/1219251/caelor ?

 

Nicolas

RAFAEL LEITE ANTONIO April 11, 2023

Hi Nicolas!

Yes. I am waiting for my ticket to be answered.

I'm new to Jira and trying these customizations. That's why I was in doubt if it's a particularity of the addon or if I don't know how to use it in Jira.

Thank you!

Like Nicolas Grossi likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events