Uploading issues through CLI

I am trying to upload CSV file through CLI Client actions. The scenario is we get dump every day , there are various issues that has already been created. So in the action I caanot use createIssue and update issue issue also won't work because I cannot match it everytime I upload the CSV. Please suggest something.

If I am going to upload all those same issues next time then it creates a new issue. I just want to update the issue if it already exists in JIRA

3 answers

1 accepted

Use *createIssue* on those lines that represent new issues (that don't have an id) and *updateIssue* on lines that already have an id. Unfortunately, you will need the issue key as the id is not currently supported. If that is not possible in your scenario, open an issue for *updateIssue* to support an *id* paramater as an alternative to the *issue* parameter.

Hi Bob, As you said we need the JIRA ID to update issue, but when I get a new CSV I have no way to get the JIRA ID.

Well you need some way to figure out the JIRA key for a line that represents a duplicat of an issue you already have. Otherwise, you have to create new.

Does the CSV file not contain a reference to an existing issue if it had been created previously? If not, how do you associate the data with an existing issue? Perhaps show a few line of the csv to help us understand what data you have.

Hi Bob,

()

If I am going to upload all those same issues next time then it creates a new issue. I just want to update the issue if it already exists in JIRA

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 32m ago in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

7 views 0 3
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