Hi all!
I would like to manage issues reported by residents of apartment houses. (for example: broken window, faulty lights, etc.)
Customers has user properties:
Address : The house
Apartment : Door number
These properties are copied by Jira Workflow Toolbox automation to a custom field for reported issues so I can see them on Issue details screen.
Some of them has more than one apartment, so I want to let them choose which apartment is the issue about. I would like the Apartment property of the logged in user to show in a selector field.
Is there any way to achieve this?
Jira Workflow Toolbox has no custom selector field for this as I can tell.
Thanks!
Bálint
Hi @Attila Győri ,
I can give a solution like this one:
We will implement also:
If the proposed solution is Ok for you, please explain the format that takes user properties Address and Apartment when they contain more than than one apartment, and I can give you the expressions for calculated text field My Apartment, for the validator and for the post-function that will set field Affected Apartment.
Regards,
Hi @Attila Győri ,
I can give a solution like this one:
We will implement also:
If the proposed solution is Ok for you, please explain the format that takes user properties Address and Apartment when they contain more than than one apartment, and I can give you the expressions for calculated text field My Apartment, for the validator and for the post-function that will set field Affected Apartment.
Regards,
Fidel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I will assume that all the user properties contains a number, i.e., we have Cim 1, Cim 2, Cim 3, Lakas 1, Lakas 2 and Lakas3. Please, let me know if this assumption is not possible. We can also have Cim, and Lakas instead of Cim 1 and Lakas 1, but this will complicate things unnecessarily.
The configuration of Calculated Text Field "My Apartments" is this one:
Expression in advanced parsing mode is:
toString(textOnStringList(["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"], userProperty("Cim " + ^%, %{00006}) != "" ? (^% + ") " + userProperty("Lakas " + ^%, %{00006}) + ", " + userProperty("Cim " + ^%, %{00006})) : null), "<br>")
Here I'm assuming that issue reporter contains the properties.
The boolean validator for checking the selection in field "Selected Apartment" is this one:
The boolean expression is this one:
%{nnnnn} != null AND %{nnnnn} in textOnStringList(["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"], userProperty("Cim " + ^%, %{00006}) != "" ? ^% : null)
replacing nnnnn with field code for Selected Apartment single select list custom field.
The Update issue fields post-function for setting Affected Apartment single line text custom field is this one:
The advanced parsed text expression is this one:
userProperty("Lakas " + %{nnnnn}, %{00006}) + ", " + userProperty("Cim " + %{nnnnn}, %{00006})
replacing nnnnn with field code for Selected Apartment single select list custom field.
This solution considers that maximum of apartments per user is 10, but you can easily extend it.
Please, let me know if you have any doubt.
Regards,
Fidel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you your reply!
If customer has one apartment it looks like this:
Key: Cim
Value: 110 Irving St NW, Washington
Key: Lakas
Value: 2nd door
For the additional apartments:
Key: Cim 2
Value: 2375 Pennsylvania Ave Nw, Washington
Key: Lakas 2
Value: 5th door
Key: Cim 3
Value: 3300 Gallows Rd, Falls Church
Key: Lakas 3
Value: 4th door
Btw it's hungarian, Lakas means apartment and Cim means address.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Attila Győri ,
I can give a solution like this one:
We will implement also:
If the proposed solution is Ok for you, please explain the format that takes user properties Address and Apartment when they contain more than than one apartment, and I can give you the expressions for calculated text field My Apartment, for the validator and for the post-function that will set field Affected Apartment.
Regards,
Fidel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Attila Győri ,
I can give a solution like this one:
We will implement also:
If the proposed solution is Ok for you, please explain the format that takes user properties Address and Apartment when they contain more than than one apartment, and I can give you the expressions for calculated text field My Apartment, for the validator and for the post-function that will set field Affected Apartment.
Regards,
Fidel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Attila Győri ,
I can give a solution like this one:
We will implement also:
If the proposed solution is Ok for you, please explain the format that takes user properties Address and Apartment when they contain more than than one apartment, and I can give you the expressions for calculated text field My Apartment, for the validator and for the post-function that will set field Affected Apartment.
Regards,
Fidel
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.