Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confiforms: Show field (value) only if current logged in user = field value

Steffen Menzel October 21, 2022

Hi,

I have the following test case:

An issue is created in Jira that contains a field with the manager's username. An email with a Confluence link is then sent to the manager.

The link contains the IssueKey as a parameter, so that when the Confluence link is called up, the data of the issue is opened and displayed directly. The autoenroll feature of Confiforms is used (https://wiki.vertuna.com/display/CONFIFORMS/Creating+auto-enroll+links+to+submit+forms+via+links+in+Confluence)

In the Confiforms form, some data from the issue should now be displayed if the currently logged in user (_user) = the manager from the Jira issue.

If the condition is not met, no data may be displayed:

Screenshot 2022-10-21 121238.jpgI've tried different options:
- "Rules for Form definition" within the "Form definition"
- "Rules for Form definition" inside the "Cleanview"
- Set "ViewOnly by user" within the "Field definition"
- ...

But unfortunately still no success. Can my idea be implemented at all? Do I need a second "Form definition" that takes values ​​from the first?

Any ideas are welcome..

Thanks and regards,
Steffen

1 answer

0 votes
Alex Medved _ConfiForms_
Community Champion
October 21, 2022

Hi

Take a look at this page to understand what macros can be used together 

In the CleanView/ListView you can use a ConfiForms IfMatches macro to render blocks conditionally within these macros

You can define condition for this macro when it should render

If you are looking into how to protect field values then consider using View/Edit restrictions parameters on the ConfiForms Field Definition macros for fields you want to protect

 

Alex

Steffen Menzel October 23, 2022

Hi,

many thanks. This was it, what I'm searched for. Works very well.

Regards,

Steffen

Alex Medved _ConfiForms_
Community Champion
October 23, 2022

Glad to help

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events