What is the correct way to identify customfield id of Sprint by rest api in Jira Software?

What is the correct way of identifying the sprint custom field in JIRA by rest api? Someone can create multiple custom fields in the system with the name "Sprint". So how do I identify which is the standard custom field "Sprint" of Jira Software?

Is it identified with the help of the string "com.pyxis.greenhopper.jira:gh-sprint" found in response by the rest api: "/rest/api/2/field"?

1 answer

0 vote

Yes, that's the Jira Software Sprint field type.  Well spotted!

Thank you.

Can you please tell me how do I identify the standard custom field of "Epic Link" and "Story Points" of Jira using rest api?

Epic link is similar - com.pyxis.greenhopper.jira:gh-epic-link  but Story points is a standard numeric custom field

What if someone has created two fields with the same name "Story Points", then how do I identify which is the correct field used for estimation?

Rename one of the fields to "Story points" or "Story Points."

Or, better, if someone has done this, remove their admin access from Jira as they really shouldn't be making mistakes like that.  It also is possible to do it by accident when upgrading or migrating though.  However a duplicate got there though, remove it.  You should not duplicate field names, especially something like Story points, for which there is no sane reason to have two fields.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Monday in Jira Software

How large do you think Jira Software can grow?

Hi Atlassian Community! My name is Shana, and I’m on the Jira Software team. One of the many reasons this Community exists is to connect you to others on similar product journeys or with comparabl...

546 views 6 12
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you