Setting a default Jira Resolution

Originally asked by Howard Kenny on 21 November 2020 (original question)


Hi,

When a sync’ed Azure DevOps ticket is ‘Done’, I can update the status of the connected Jira issue, but I can’t set a default Resolution (Resolved). I’ve reference the Jira documentation, but I don’t think it’s entirely relevant when the source is Azure DevOps where no Resolutions exist.

Cheers.


Answer by Juan Grases on 21 November 2020

Hi!

This should work on Jira:

//Incoming script
issue.resolution = nodeHelper.getResolution("Resolved")

Let me know if it does.


Comments:

Howard Kenny commented on 21 November 2020

Cheers Juan - that worked.

I went with this:

if (remoteStatusName == "Done"){
    issue.resolution = nodeHelper.getResolution("Resolved")
    }

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.