Unable to update the github status in Jira custom field

Originally asked by Varun Joseph Allu on 23 March 2023 (original question)


Hi Team,

We have a requirement to update Github status in Jira custom field,

We are getting the status update in Jira custom field by for Merged it showing as closed .

I tried to modify the script but still it is not working as expected,

I want to display pull request merged status as value in Jira custom field,

Please help with your inputs.

Thank you,
Varun


Answer by Sonal Otwani on 13 April 2023

Hi Varun Joseph Allu ,

The GitHub API which is being used by Exalate for Pull Request status is giving “closed” as a status value. So We tried to call new API to find whether the Pull Request is Merged or not. Attached is the file which contains GitHub Outgoing Sync issue.

githubAPI.groovy (old community)

Kindly let me know in case of any concerns.

Thanks,

Sonal