Uploading issues through CLI

aloks October 9, 2013

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

1 vote
Answer accepted
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 14, 2013

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.

aloks October 26, 2013

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.

Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 27, 2013

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.

0 votes
aloks October 14, 2013

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

0 votes
Bob Swift OSS (Bob Swift Atlassian Apps)
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 10, 2013

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.

Suggest an answer

Log in or Sign up to answer