Where is pkey store ??

Since we migrate to Jira 6.1, the field pkey in jiraissue table was set to NULL.

I need to generate KPI and pkey is used ... I need to adapt some sql statements but did'nt found where pkey is now store :-(

Tks for help,

Philippe

2 answers

1 accepted

This widget could not be displayed.

Hi Philippe,

To make the operation work fast we had to change JIRA internal storage, from now on jiraissue table store issue keys divided into project and issuenum. You must no longer use pkey and we null it in one of the upgrade tasks. There's also a new table storing all historical keys for a project. Read details in Preparing for JIRA 6.1.

I hope it helps.

Cheers

This is not elegant, but you'd want to do something like this (mysql example):

select concat(b.pkey, '-', a.issuenum) as PKEY
from jiraissue a, project b
 
where 
a.PROJECT = b.id
and b.pkey = 'FOO'

This widget could not be displayed.

Hi Philippe,

The numeric value that used to be part of jiraissue.pkey is now stored in jiraissue.issuenum. The alpha part of the old pkey can be found in project.pkey for the issue's related project.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

286 views 5 0
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