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
Next: Root
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
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi
It is possible to use entry.field in restrict view or édit option for one user or group but I need to restrict view/édit for liste of users or groups. How Can I use restrict view/édit field option dynamicaly ? In other words how Can I use another Form to set users and groups rectrict view/édit in a second form ?
Thx
Hi @MAX L and welcome to Atlassian community
Yes, you can restrict edit/visibility dynamically and that is by referring to another field or fields in the mentioned parameters via [entry.field_name] notations
However, the field value should be accessible to the form - probably connected to another form via the smart field
Alex
Yes but it seems work only when entry.field used in parameters has one user or group value not when it has list of user or liste of group
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The field expects a comma separated list of values and supports multiple
What do you provide/set?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I provide list with comma separator but it take only first value.... I dont know how to fix that
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you mind sharing your configuration or providing an example what does not work for you?
Otherwise I dont know how to help you...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok
So, I have 2 forms : Form1 to set users/groups and form2 who have restrected field
Form1 : field1 use to select row, field2 group or user multisect and field3 text
Form2 : field1 which have Form1:field3 as restricted view parameters.
Form1: field3 IS used to convert Form1:field2 values in list comma separated
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Not sure I get that, but here is an example what I was trying to explain in my first comment
https://recordit.co/TKqp8GcNAM
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi
Your example is similar as I expect but in my case it works with only one user or group in field3. If I have field3 with values "userA, userB" or "groupA, groupB" it doesnt work :(
Its liké if field restriction view parameter used only first value (userA or group A ,instead userA,userB or groupA, groupB
To explain what I would do, its to have a Form to set user and/or group that have rights to view some fields and use it in a product form in which some fields Can bé read or not based on first form datas...
Rightform : colorfield, users, groups
For each color correspond liste of users or liste of groups
Productform: colorfield, adresse, phone
Phone must bé visible only for users or groups with thé right color in colorfield
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It works for single or multiple groups, no problem
Here is the configuration of my example, you can try importing it and seeing yourself
<ac:structured-macro ac:macro-id="ddd76577-27e7-4217-b17a-983136aa70e9" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">Form1</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="549bf5f8-2f3c-452c-805b-4c4333707985" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">text</ac:parameter>
<ac:parameter ac:name="fieldLabel">Restrictions group description</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="c3f1d9b8-73b1-455a-a06d-84e05a3421f5" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">restrictions</ac:parameter>
<ac:parameter ac:name="fieldLabel">Restrictions</ac:parameter>
<ac:parameter ac:name="type">securitygroupmulti</ac:parameter>
</ac:structured-macro>
</p>
<ac:structured-macro ac:macro-id="802a8b31-516a-439a-a519-38549373f27e" ac:name="confiform-entry-register" ac:schema-version="1">
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<ac:structured-macro ac:macro-id="7dc8e940-c237-4826-82dc-3879db17ebfa" ac:name="confiform" ac:schema-version="1">
<ac:parameter ac:name="formName">Form2</ac:parameter>
<ac:rich-text-body>
<p>
<ac:structured-macro ac:macro-id="aa8db73c-5deb-448d-98c4-716c41960c72" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="editRestrictions">[entry.restrictedBy.restrictions.asList]</ac:parameter>
<ac:parameter ac:name="fieldName">field1</ac:parameter>
<ac:parameter ac:name="fieldLabel">Field 1</ac:parameter>
<ac:parameter ac:name="type">text</ac:parameter>
</ac:structured-macro>
</p>
<p>
<ac:structured-macro ac:macro-id="e581600b-ab24-40ac-9857-80aeba339887" ac:name="confiform-field-definition" ac:schema-version="1">
<ac:parameter ac:name="fieldName">restrictedBy</ac:parameter>
<ac:parameter ac:name="fieldLabel">RetsrictedBy</ac:parameter>
<ac:parameter ac:name="values">[136642868|Form1|text|true||]</ac:parameter>
<ac:parameter ac:name="type">smartselect</ac:parameter>
</ac:structured-macro>
</p>
<ac:structured-macro ac:macro-id="161ee5b3-702f-4498-a8a7-b22ab34ddd2a" ac:name="confiform-entry-register" ac:schema-version="1">
<ac:rich-text-body>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<br/>
</p>
</ac:rich-text-body>
</ac:structured-macro>
<p>
<br/>
</p>
You will need to change the "restrictedBy" field to point at the Form1 in your page -> reconfiguring the smart field
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.