Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to add resolution details in JIRA Rest API?

I am trying the change the tansition from inprogress to Resolve using the following input params,

jira/rest/api/2/issue/JIRASD-78/transitions

{        "update": {            "comment": [                {                    "add": {                        "body""Resolved via automated process."                    }                }            ]        },        "transition": {            "id""441"        },        "fields": {            "resolution": {                "name""Duplicate"            }        }    }

 

how mto update the resoluttion comments in jira using JIRA Rest API?

2 answers

2 accepted

0 votes
Answer accepted

Seems good on paper to me. Are you sure that the 'Resolution' field is available as part of the Transition Screen on this specific transition?

It must be on the screen, otherwise you won't be able to change it.

 

You could also check the following endpoint:

/rest/api/latest/issue/JIRASD-78/transitions?expand=transitions.fields

 

If resolution is not available as a field as part of that transition, then we'll know it's missing.

Thanks for reply...

When i change the status from Inprogress to resolve state, i have the resolution, resolution details option in Resolution Popup.

Once i have updated these fields I cna able to see in the JIRA. But I couldn't see to update the resolution details by REST API.

0 votes
Answer accepted

Thank you RD. I have found the customfield for resolution comments and update the same. Its reflected in JIRA. Thanks you.

{"transition":{"id":"441"},"fields": {"customfield_10103""Low""resolution":{"name":"Duplicate","description":"resolution comment Duplicate status reason Clear Incident Description 106 upfdate"}},"update": {"worklog" : [       {         "add": {           "timeSpent" : "6m"         }       }]} }

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you