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.
Hey Sachin,
This I tried already but receiving the below error:
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.
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.