I have used "domain/rest/api/2/issue/issueKey/attachments" rest api to attach file to ticket. But it is not visible on portal.
When I create ticket with an attachment from portal it is visible.
I compared the response of both the tickets using "domain/rest/api/2/issue/issuekey" rest api. Both are similar.
I don't understand what's going wrong.