Questions for Confluence license has expired.

Please purchase a new license to continue using Questions for Confluence.

how to unexalate specific connection with custom field condition

 
1
0
-1

Hi

we need  to unexalate specific connection with custom field condition

if local issue has customfield value equal to "Shynchro Stopped" , unexalate this issue

if remote issue has more than one connection , we need to keep them and unexalte only a specific connection


Thanks

  1. Daniel Carvajal

    Hi Salma Nairi 

    We are working to find a solution to this problem, we will be replying soon.

    Thanks

  2. Ariel Aguilar

    Hi Salma,

    The following article was updated since the  method changed:

    https://docs.idalko.com/exalate/x/IZArAQ

    This should work to get the value from the custom field, and unexalate for all connections:

    if (replica.customFields."Custom Field".value == "Shynchro Stopped"){
          final def _syncInitService = com.atlassian.jira.component.ComponentAccessor
                .getOSGiComponentInstanceOfType(com.exalate.api.trigger.ISyncInitiationService.class)
        _syncInitService.unexalate(issueKey.id as String)
            return
    }

    Then if you want to do it by single connection, you might want to think on using scriptrunner and check this post:

    Unexalate connection via scriptrunner

    Kind regards,

    Ariel

  3. Salma Nairi

    Thanks

    i already tried using script runner but i had  exceptions some methods can't be imported

    I did not find the time to solve them
    thanks

      

CommentAdd your comment...