Can we get jira issue key from customfield using jira cli?

we need to update linking information in jira, for that I need to get jira issue key based on external key. So please tell, Is it possible to get Jira issue key based on external field value?

3 answers

0 vote

You need to define the logical relationship before we can help you answer that question.

How do your systems know that Jira-X is linked to External-Y? As a quick example, maybe you have a custom field called "external id". If that's true, then you can search Jira for "external id = External-Y" and you'll get one (or many) issues back i the results.

But it really does depend on how you're doing this mapping and where it's stored!

thanks for quick reply Nic

We are importing existing DDTS to JIRA. We are not able to import linking information to JIRA. so we are keeping DDTS-ID as external field to get linking.

could you please help in linking issues in jira?

Ok, so you've got DDTS-ID, but you haven't explained what you mean by "as external field", or how you are storing the relationship between that and the Jira issue. Could you explain these two? I'm pretty stuck until we know the structure of the data.

0 vote

You need to define the logical relationship before we can help you answer that question.

How do your systems know that Jira-X is linked to External-Y? As a quick example, maybe you have a custom field called "external id". If that's true, then you can search Jira for "external id = External-Y" and you'll get one (or many) issues back i the results.

But it really does depend on how you're doing this mapping and where it's stored!

Hi Nic,

Here is the complete details how we are going to link issues in JIRA

1)Import data to JIRA from old_ID in CSV format.

2)While importing to JIRA, JIRA key (unique) will take only numeric part of old id.

3)As we can’t import linking information of Old projects to JIRA, we are creating an external field (old_ID which is unique in Old system).

4)Based on the clone by (parent – Old ID) and clone to (child- Old-ID) information in JIRA for each issue, we will be mapping to external field (unique Old-ID).

5)Based on external field value, we will find JIRA key (destination).

Here external field means custom field that we created to store old-ID value.

So please help in getting JIRA key from external field(old-ID).

And also tell me, Is there any JIRA cli action to get issue key based on custom field values??

Thanks for help

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

Mission-critical battery manufacturer fulfills FAA software requirements with Commit Policy Plugin

EaglePicher Technologies is a leading manufacturer of battery systems for diverse industries like defense, aviation, space or medical. As they operate in highly regulated industries, keeping a clear ...

118 views 0 2
Read article

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