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

0 votes

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.

Suggest an answer

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

Tell us how you've implemented Change Management

Hello Community 👋, I'm a product manager at Atlassian, looking at improving change management capabilities across our products. In particular, we're looking at bridging the gap between Dev & ...

930 views 3 13
Join discussion

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