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

The customfieldvalue table is empty for Portfolio Team Customfield

rahuldanwade
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 Leaders.
July 21, 2019 edited

am writing a custom SQL Query for reporting and I am trying to pull data for Team custom field, but cannot find a value in the jiraissue table.

The customfieldvalue table is empty for customfield-20081 as well. 

Team Custom field ID: 20081 (this is not relevant though)

Team Data Table :AO_82B313_TEAM

 

select * from customfieldvalue where issue=(select id from jiraissue where issuenum=4684 and project=(select id from project where pkey='XYZ')) and customfield = 20081;

 

>>Empty Set

 

Is there a way to pull all issues for a specific project from the database where Portfolio (P4J) Team field value is not empty?

1 answer

1 accepted

0 votes
Answer accepted
Buu Le
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 25, 2019

Hi, the Portfolio custom field data is stored in entity_property table as JSON value.

rahuldanwade
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 Leaders.
July 29, 2019

thanks Buu Le.

Following query works

select json_value from entity_property join jiraissue on entity_property.ENTITY_ID = jiraissue.id where entity_name = "IssueProperty" and jiraissue.project = 12345;

Like • 2 people like this
Tom Mason June 8, 2020

Thanks, this is just what I needed. 

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, ace, atlassian community event, donation, girls who code, women in tech, malala fund, plan international, kudos, community badge, badge, atlassian badge, International Women’s month, International Women’s Day, women's month, women's day

10 for Change at Atlassian Community Events

Show up and give back by attending an Atlassian Community Event: we’ll donate $10 for every event attendee in March!

Join an Atlassian Community Event!
AUG Leaders

Upcoming Jira Events