Where in the database are field values for "Velocity processed Message Custom Field (for view)" fields stored?

We're migrating from Jira 4.4 up to Jira 6 and need to pull the values for a custom field that was a "Velocity processed Message Custom Field (for view)" field, which we'll just stuff into a plain old text field in our new Jira 6 instance. The problem is that I can't find the field values in customfieldvalue.

Where is the plugin hiding values for these custom fields?

Thanks,

Mike

4 answers

Yep. Saw that, but it doesn't seem to be accurate - at least for our instance. An entry does exist in customfield, but there's nothing in customfieldoption or customfieldvalue despite having thousands of issues that do have that field populated.

So it would appear that the plugin is persisting the field values somewhere else.

Those values are null in customvalue (customfieldoption), stringvalue, textvalue (customfieldvalue)?

I already told you that you're looking in the wrong place.

(Edit) Sorry, that probably seems quite grumpy, I don't mean it that way. I'm afraid Mehmet is wrong about this particular type of field, and you need to read my original answer.

Yep. Saw that, but it doesn't seem to be accurate - at least for our instance. An entry does exist in customfield, but there's nothing in customfieldoption or customfieldvalue despite having thousands of issues that do have that field populated.

So it would appear that the plugin is persisting the field values somewhere else.

0 votes

Er, no, this is completely wrong.

There are no "values" for velocity processed fields. They don't hold any data, so customfieldvalue is empty for them.

The way they work is to process velocity that is added to their default text, which is held in the field context. I can't remember the name of the table for that off the top of my head though, sorry. But, I *think* (please, don't hold me to this!) it is genericconfiguration

I'm embarassed to say I figured this out and it was a stupid question. After looking at the default text using Nic's comment below to point me in the right direction I saw this:

#macro (getReleaseNoteComment $issue $customFieldManager) 
#set ($customFields = $customFieldManager.getCustomFieldObjects($issue.project.getLong("id"), $issue.issueType.getString("id"))) 	#foreach($customField in $customFields) 
   	 	#if($customField.name.equals("Fix Version Build/s")) 
			#if($customField.getValue($issue)) 
          			<a href="https://athena.redprairie.com/hotfixes/hf_results.php?hf_num=$customField.getValue($issue)" target="_blank"> $customField.getValue($issue)</a>
      		#end 
    		#end 
	#end 
#end

#getReleaseNoteComment($issue $customFieldManager)

So we were simply referencing another field's value and then processing that.

Thanks for the help!

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,801 views 11 18
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot