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 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 ...

3,110 views 13 19
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