Project

General

Profile

How to acess user custom field from new issue window?

Added by Michał w about 1 year ago

Hello,
I created custom field for users - department.
I would like to show this department value when i choose assigned to person from list while making new issue. How should I make it done?


Replies (3)

RE: How to acess user custom field from new issue window? - Added by C S about 1 year ago

I haven't fully understood your query yet - but perhaps using the "category" would be a solution - depending on the category selected, the issue is assigned to the contact stored in each case.

RE: How to acess user custom field from new issue window? - Added by Michał w about 1 year ago

Hello!
Thank you for your response.
I presented my problem on pictures:

On pic1 - administration -> Users -> John Smith
I created custom field "Dział" (eng. department) for users.
I select KJN as John's department.

On pic2 - Projects -> Issuses -> New Issue
I created custom field "Dział" (eng. department) for issues.
I would like my custom field "Dział" for issues to be automaticly comleted by data from my custom field for user John Smith while chosing Assignee.
So when I choose John as assignee I would like "Dział" field to be automaticly complited by KJN string.

I assume that this task require editing some ruby view file or writing query for custom view plugin.
But I dont know how to pass data from custom fields from users to issues.

RE: How to acess user custom field from new issue window? - Added by C S about 1 year ago

Ok, I'm starting to understand what you want to achieve - unfortunately I can't help you with the programming of your scenario, but I would like to suggest a possibly useful solution that can be implemented without custom fields and programming:

1. You create groups with the name of the department and then assign them to the respective user(s).
2. You select issues-categories in the project configuration and create a category for each department - and select the associated group as assigned.

You can also find further information in the wiki at: RedmineProjectSettings

Maybe I could help you with that - otherwise there might be someone else ;)

    (1-3/3)