You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hello Team,
I am trying to fetch the list of project contexts for a field. Tried many ways but couldn't get the expected result. Could you please help out?
Hey Sachin,
I want to get it from DB. I am trying the query from script runner UI now, If it works I have to get the data from DB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Refer this Doc
You can use this query to get the context associated with specific custom field
select * from fieldconfigscheme where FIELDID in (customfield_10001);
If you want for all field then
select * from fieldconfigscheme
Accept the answer if it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you give the customfield id in double quote and try
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try to run
select * from fieldconfigscheme
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pratibha,
This is the table where custom field context information being store.
either you can extract this information in excel then then apply the filter based on fieldid so you get the context of specific custom field
Or
Apply the where condition in the select query for specific custom field
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey Sachin,
Yes , we can filter in excel not sure in query it's not retrieving but is it possible to get the assosciated project key as well with the contexts?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pratibha,
yes you will try this one
select * from configurationcontext where fieldconfigscheme=10031;
Here 10031 will be id which you will get from previous query
Refer this Doc for more information
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.