Forums

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

Create a new issue and write a comment with linked issue

PollyH September 14, 2020

Hi,

I would like to create and link a new issue on a transition. So far this works pretty good. Now I want to write a comment to the original ticket with the link to the new created ticket, so that the customer on service desk can directly click on it

 

Any ideas?

 

Thanks

Polly

2 answers

0 votes
PollyH October 15, 2020

Hmm, i did some research and found the project where i got a solution. the problem for me: the solution was in sil and i need the solution for groovy. 

it was like:

 

string[] LINKED = linkedIssues(key);

addComment(Key, currentUser(), "My Comment" +LINKED(arraySize(LINKED)-1));

 

how can i translate this snipped to groovy?

0 votes
Avinash Bhagawati _Appfire_
Community Champion
September 14, 2020

Hi @PollyH ,

Hope you are doing great !

We are from the BobSwift support team and would like to inform you that we have created a support request https://bobswift.atlassian.net/servicedesk/customer/portal/1/SUPPORT-4664 on your behalf in our portal. Please try to access with support request.

Currently, with the help of 'Creation on Transition' app, it is not possible to meet your requirement of creating a new issue and writing a comment to linked issue.

With the help of our other bobswift app "RUN CLI ACTIONS IN JIRA" https://marketplace.atlassian.com/apps/1210941/run-cli-actions-in-jira you will be able to achieve your requirement and please find below detailed steps for the same.

  • Install RUN CLI ACTIONS IN JIRA in your Jira Instance and apply the trail license.
  • Navigate to your target workflow > Transition > Post Functions > Select CLI action
  • Configure the CLI action post function as shown below:

2020-09-14_19-35-09.png

Product: JIRA

ACTION

--action run --server "JIRA_URL" --user "JIRA_USERNAME" --password "JIRA_PASSWORD"

DATA

--action createIssue  --type Task --summary "Testing New" --project "TARGET_PROJECT_KEY" --server "JIRA_URL" --user "JIRA_USERNAME" --password "JIRA_PASSWORD"
--action addComment --issue %original_key% --comment "@issue@ has been created as part transition" --server "JIRA_URL" --user "JIRA_USERNAME" --password "JIRA_PASSWORD"
--action linkIssue --issue %original_key% --toIssue "@issue@" --link "causes" --server "JIRA_URL" --user "JIRA_USERNAME" --password "JIRA_PASSWORD"

Please let us know if you have any additional questions, we are happy to help you !

Thanks,

Avinash

Suggest an answer

Log in or Sign up to answer