Hi Guys,
Need your help, i am trying to get list of Custom fields using SQL query using Script runner resources . in Our JIRA Dev environement it's working fine while in PROD Environment it's giving an error invalid object name 'customfield'. Kindly suggest..why prod is not reading tables or table in missing from prod database.
Thanks!
V.Y
You'd be far better off using the API to get a list of fields, it's far easier to work with the fields directly in a script than have to look them up every time you want to get one from a name.
But to answer the question - you are connecting to the wrong database in prod, or it's of a type that is case-sensitive and the column is called CUSTOMFIELD or Customfield or something where the case matters.
Hi @Nic Brough -Adaptavist- actually my main aim is to get empty custom fields. I am getting data from Dev but from prod getting error .
is there any way to get empty custom fields via REST API .
I need empty field for cleanup purpose . We have 5000+ fields in our single instance.
let me try to change customfield to CUSTOMFIELD.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Nic Brough -Adaptavist- I have tried CUSTOMFIELD, Customfield and customfield in every getting same error "invalid object name".
I am using ScriptRunner Resources >> Local Database Connection
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would guess that your "local_db" database connection pool is set up to point to the wrong database. It's either going to one that isn't responding or its empty. Either way, it's not connecting to your Jira database.
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.