Dear Team,
I have used the below script in groovy in post condition to modify the linked issue status to move in progress when the main issue moves to in progress.
You can use
ComponentAccessor.issueLinkManager.getIssueLinks(<LINKTypeID>).collect{it.getSourceObject()}
Depending on the direction of the link you may have to use getDestinationObject()
Regards
Hi Bonniec,
Thanks for the quick response, I have added the link type id in the provided line and added the line in the below code.
The call to the Jira server did not complete within the timeout period. We are unsure of the result of this operation.
Close this dialog and press refresh in your browser
Kindly help me if the place of the provided line is correct or any other modifications required.
Thanks and Regards,
Ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you add logs to figure out what's going wrong ?
You can try with getDestinationObject. I would add a condition to check if the issue is not the "main" one.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bonniec,
We have noticed that the script has modified the statuses (On Hold,Dev Complete,Funnel) of multiple projects at the backend in our Jira instance even though we have added the script as custom script in post condition of single project.
Not sure why the postcondition script of single project will cause the modification of the statuses in multiple projects.
Kindly help if you have seen such scenarios in the past.
Regards,
Ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you want to have it updating linked issue from a project only, you have to add a if statement to check if the issue is from the expected project.
if(linkedIssue.getProjectObject().getKey() == "ABC"){
//code to transition issue
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.