customfield database queries


I have a customfield: "Project ID"

I want to ask external database for information basing on Project ID

How do I do this.

I have Database Custom Field plugin installed.

5 answers

0 votes
Rian Spivak Community Champion Apr 27, 2017

In our circumstance, we've done this and we've used the format:

select * from my_table where {customfield_10172} = 'my_value';

Where the 10172 is the id of that customfield instead of using the name.

OK, didn't realised that it works linke that. Thanks. So i guess you may change my_value to database field in external db.

Hey @jan Sekara

select cfname,FIELDTYPE,DESCRIPTION from customfield where cfname ='Project ID'

Try this

to get basic details of custom field name





I am using Database Custom Fields 4.0

How do I configure just displaying information based on seccond customfield?

Now I can only select from this field when editing, but I just want to display it when viewing the issue - is this possible?

I have a customfield XXXX (customfield_10400)

And a table in sql like below (added for testing purposes)

Configuration of customfield on the seccond photo.

What am i doing wrong?




jira problem.PNG

I want to display just one field, like the info from table but just one information, not whole table.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

62 views 0 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you