Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Re-Sync/Update JIRA Issues on another instance

Ken August 23, 2019

Dear Community,

 

we are using the following CLI Action in our Workflow during the create issue transition to create the same issue on another jira instance:

 

CLI action 
Product: JIRA
Action: --action run --common "--project %project%" --server http://hostname.mydomain.com --user Sync --password **********
Data:
    -a createIssue --type "%issueType%" --summary "%summary%" --priority %priority%
    -a addLabels --issue @issue@ --labels %issue_key%

 

Since the values change the next step would be to update these issues using a saved action in the run CLI Actions menu. I am aware of the updateIssue action and also tried running it (same commands as above with updateIssue instead of create issue) but unfortunately it throws an error:

 

Error: Unexpected argument: updateIssue
Error: Parameter 'action' is required.
Client error: 1 actions failed 

 

Thank you very much for your assistance.

2 answers

1 accepted

0 votes
Answer accepted
Manisha Kharga _Appfire_
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.
August 27, 2019


The below action, updated the issue successfully.

 

-a updateIssue --issue %original_key% --type "%issueType%" --summary "%summary%" --priority %priority%

 

 

Thanks,

Manisha 

0 votes
Ravya
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.
August 26, 2019

Hi @Ken 

We are from BobSwift support team. Thanks for raising the request with us.

We need the below details to analyze the issue further and have created a support request on behalf of you in our portal

https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-2901

Please signup to our portal to provide the requested details and further discussion on this ticket.

We are able to create issue and update issue from one JIRA instance to another by adding the CLI action in the workflow. Please find the details below.

Action: --action run --common "--project TEST" --server "http://XXXX.com" --user XXXX --password XXXX
Data: -a createIssue --type "Bug" --summary "Summary from other instance" --labels "label2 label4"

Action: --action run --common "--project TEST" --server "http://XXXX.com" --user XXXX --password XXXX
Data: -a updateIssue --issue "TEST-2" --summary "New Summary from other instance" --labels "label1 label3"

Can you please share the below details for further analysis.

1. Share complete post function of createIssue and updateIssue.
2. Enable the DEBUG log, then rerun the scenario and share the atlassian-jira.log.

Thanks,

Ravya

Ken August 26, 2019

Hi Ravya,

 

thank you. I signed up for the service desk, could you assign the issue to me so that I can send you the requested information?

 

Thank you.

Suggest an answer

Log in or Sign up to answer