You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
We have an object type called "User". One of the attributes on this object type is called "Work place". The value of this attribute should be maintained (selected) by the user itself. None of the others attributes should be editable by these users. Also, the user should only be able to edit the object representing the current user.
I.E. Tom Bombadil should only be allowed to edit the object the attribute "Workplace" on object "Tom Bombadil" etc., and not the object "Slart I. Bartfast".
(The "User" object type have another attribute that is mapped to the Jira user. The attribute "Work place" is a reference to another object type consisting of all the work places in our organization.)
I think achieving this restriction is not possible within Insight itself.
But maybe I could have a request in the Jira Service Desk Portal containing the Insight Custom Field "Work place", where the user would pick his work place from the list, and then having a post function to update the object of the current user?
Or is there another way maybe?
As you noted, Insight by itself does not yet support Attribute Permissions, only Object Type level permissions.
We do have several Feature Requests which you can vote on - to have these Permissions.
As for the use of Postfunction - yes, this should work:
Please let us know if you require additional information.
These links no longer work. I want to do something similar. https://community.atlassian.com/t5/Jira-Service-Management/Best-way-to-let-users-edit-certain-attributes-for-objects-in/qaq-p/2099366#M111620
I am trying to do what I described above; having a request presenting the user with a drop down list of "Work place" (Insight custom field), and then running an Insight post function setting the chosen "Work place" as the new attribute value on the curent user, but I can not make it work.
I am using this script as basis:
Which of the Insight post functions should I use?