Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,555,136
Community Members
 
Community Events
184
Community Groups

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

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

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!

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

 

Nicolas

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