Questions for Confluence license has expired.

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

Restriction for Attachments

 
1
0
-1

Hello Team,

We would like to restrict a few attachments which we add to the ticket, not always want to sync the attachments, Some attachments may have confidential data which cannot be shared.

Is there any way to restrict the attachments ? We would like to have an option which allows us to opt whether we want that particular attachment to be shared or not.

Thanks in Advance

Reddy

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Check out 
      https://docs.idalko.com/exalate/display/ED/Attachments+synchronization


      There is an example how you can iterate over the attachments, and only add them to the replica if these are meeting a number of conditions.

      replica.attachments = issue.attachments.findAll { a ->
        def publicComments = commentHelper.filterLocal(issue.comments)
        def isMentionedInPublicComments = publicComments.any {
          c -> c.body.contains("[^" + a.filename + "]") ||
              (c.body =~ (/!${java.util.regex.Pattern.quote(a.filename)}(\|.*!|!)/.toString())).find()
          }
        isMentionedInPublicComments
      }
      1. Madhu

        Hello Francis Martens (iDalko) 


        We are using Exalate for Jira Software were we are using role based restriction for comments. 

        This is how the our Outgoing sync is configured for comments 

        replica.comments = issue.comments.findAll { it.roleLevel == "Both Internal & External" }


        Could you please help us with the way to restrict attachments based on the roles. 

        For example Restrict all the attachments added to comments which is not synced. 

        Sync all the attachments added to the synced comments ( Both Internal & External Role ). 


        Thanks & Regards

        Madhu

      2. Madhu

        Hi Francis Martens (Exalate) That is also me created a ticket year ago, stepped back without a proper solution. 


        Could you please check my error posted over there, Thanks for looking into.


        Regards

        Madhu

      3. Alexander Hoff

        Hi Francis - this query is a result of a customer escalation around securing their data. Please could this be treated as critical.

        We are happy to jump on a call if this helps speeding up (possible) resolution.

        Many thanks.

      4. Francis Martens (Exalate)

        Hi both,


        Exalate is trying to indicate what the problem is 


        You will have to tweak the code a bit to make it work.


        Francis
        PS - In need of exalate configuration help? - 130 partner organisations are ready to help out.

      5. Madhu

        Hello Francis Martens (Exalate) Tried all the suggested answers still we are not able to restrict the attachments. 

        For the above code, even my shared attachments were not getting synced. 


        Thanks & Regards

        Madhu

      6. Francis Martens (Exalate)

        Madhu,


        Can you be more specific on the problem you encounter.
        "It doesn't work" is a too wide of a problem statement to be able to help.


      CommentAdd your comment...