User Properties - How Do You Use Them?

Deleted user October 8, 2019

I've read the instructions for adding the User Property Keys and Values, but I haven't seen any examples regarding the usefulness of this. I started by creating a Property Key for "Activated" and Value dd/mm/yyyy (date) for that key. The intent was to provide a means of perhaps tracking when users were added. Maybe create another for "Deactivated" when we have users who have moved on....but I'm wondering how OTHER companies use this feature in Jira?

Are there key/values that you use and have found useful? Is this feature only useful if you buy a plugin to extend it into workflows, etc? I'm interested in applying this to our users, but I don't have a firm grasp on its usefulness.

Any feedback is welcome!

Thanks

User_Properties.png

 

2 comments

Aleksandr Zuevich
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 8, 2019

According to @Jobin Kuruvilla [Adaptavist] Jira Development Cookbook:

JIRA lets you add key/value pairs as properties on any available entity like user,
group, project, issue, and so on. It uses OpenSymphony's PropertySet to do this.
Three major cases where PropertySet is used internally in JIRA are as follows:
- To store user preferences such as e-mail, full name, and so on
- To store application properties
- To store chosen preferences of Portlets/Gadgets on user dashboards
We can also use the PropertySet in our plugins to store custom data as key/value
pairs.
In earlier versions of JIRA, PropertySet was the only technology used to store
plugin information and other data related to plugins. But JIRA now supports a
technology called ActiveObjects

I'd add that plugin settings also allow to store data.

So I found it useful for the plugin development, e.g. I use issue properties to store issue approvement. 

Also you can use jira.issue.editable issue property to make issue editable/non-editable.

Susan Hauth _Jira Queen_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 9, 2019

Hi Chris,

We use our user properties internally to store the Office and Manager of the employee.  We then use a post workflow function to copy the Office value to the field Office whenever they create an issue.  We also will use the value of Manager for approvals in various workflows in the same manner

For our external clients we use the property "Client" to populate the Client field as a post workflow function.  That in turn uses a listener to pull in the value of the Tempo account based on the Client field. 

Hope that helps

Susan

Like # people like this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 9, 2019

Hey Susan,

Can you include some actual code examples of those things? Both the property code and the Post Function code. 

Like Catherine Jarosz likes this
Susan Hauth _Jira Queen_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 9, 2019

Hi John,

I find that Jira Workflow Toolbox the best for this.  Although I think scriptrunner will do it as well.

Here's the postfunction:

image.png

Like Deleted user likes this
Susan Hauth _Jira Queen_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 9, 2019

And here's what my properties look like:

image.png

Like Deleted user likes this
Yatish Madhav
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 18, 2022

Thanks for this post and the comments ... I am starting to see if we have a use for this kind of functionality and seems we should be able to automate via REST API as well ...

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events