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 I get a property key?

I read through some of the documentation trying to figure out how to get the property key to finally be able to change the properties of my user with PHP. The problem is that I don't even konw how to get to the properties in the first place. To read my data I use the JSON that I get from this link: http://localhost:8080/rest/api/2/user?username=testUser

1 answer

1 accepted

1 vote
Answer accepted

Hello @Tzim

Thank you for reaching out.

The REST API calls to get or set user properties will depend on which version of JIRA you are currently using.

If you are using the latest version (8.4), you can use the Calls below:

To GET User properties: 

GET http://localhost:8080/rest/api/2/user/properties

To Set User properties:

PUT http://localhost:8080/rest/api/2/user/properties/{propertyKey}

If you are using a different JIRA version, please check the documentation below replacing the 8.4.0 in the URL by the version of your JIRA application:

GET and SET User priorities - JIRA REST API 

Let me know if this information helps.

Thank you for your help and sorry for the late response

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Desk

The Complete Guide to Atlassian for ITSM

Hi Atlassian Community! This is Teresa from the Atlassian team. My colleague Paul Buffington @Buff and I are excited to share a brand new ITSM resource we’ve created – "The Complete Guide to At...

1,157 views 7 16
Read article

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