In order to track the project an issue was created in after it had been moved to another project, I created a custom single line text field. (text searcher active)
This field will be automatically filled with on issue.create by using the JIRA default copy field value functionality. (Project --> "Originating Project")
However, I cannot search for those values as text. JQL will not find them. (search query: project= CRF and "Originating Project" ~CRF
In my example, the project key is CRF and is correctly* copied into the text field and is also displayed on respective screens and columns on the result list of a jql-search.
I just edited a ticket, removed the automatically set value of CRF and manually typed in CRF.
Can someone give me a hint on how I need to search for the copied value?
Seems like a bug to me, honestly.
Using the JMWE function worked for me on first try (with the field not added to any screens).
The value(s) of field Project will be copied to Originating Project .
Run as add-on user.
The only logical conclusion I can come up with is that there must be some hidden characters. If I use a wildcard search "C*" instead of "CRF" the same behaviour occurs. As using wildcards for the first character is not supported, I must assume that those hidden characters are at the beginning.
Adding the same post function to a different project has the exact behaviour too.
Now, I will just stick with JMWE but generally, I prefer using default functionality if possible.
Thanks for the support!
I'm glad to know that you were able to work around your issue, Tobias.
I'll further test this behavior again with the same parameters that you used with the default JIRA functionality.
As soon as I reproduce it, I will start investigating the root cause of the problem and will let know once I have any updates.
Have a nice day!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Petterson,
thanks for getting back so quickly!
I almost did exactly the same as you with only one difference: Initially, I did not add the new field to any screens at all, because it should not interest any users and also should not be modified manually either.
As I stumbled upon this fairly odd behaviour, I also added the field to screens in the hopes it would solve it - but it did not.
Additionally, I verified that the issue key does not contain any more characters in the project summary. I also tried copy/pasting the exact value after I added the field to a screen, same result.
Config details:
Single Line Text field, Search Template: "Free Text Searcher"
Function used: Copy Value From Other Field
The field Originating Project will take the value from Project. Source and destination issue are the same.
That's my search results just looking at the latest tickets created in that project. (for CRF-41 the value was typed in manually by me)
That's my search results looking for the specific value: (same results for using "CRF" instead)
The issue is found to be having a value:
I'm now going to try using the JMWE equivalent function "Copy value from field to field (JMWE add-on)"and see if that works for me. (I'll update this post with the results)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Tobias,
Can you please let us know what is the JIRA default copy field value functionality that you are using to copy the fields?
I have copied it using the post function Copy Value From Other Field and it has worked just fine for me. Please, check my steps below:
- Added a new custom text field (Single Line) called LOB and added it to my project screens
- Navigated to my project > Project Settings > Workflows > Clicked to edit
- Clicked on the Create transition > Post Functions
- Added the post function Copy Value From Other Field and configured it to copy the value of the Project field to the LOB field
- Saved my draft Workflow
- Created two new issues and noticed that the LOB field was properly filled with the project key:
- The search returns both issues properly when performing the search:
project = ts and "LOB" ~ "TS"
Let me know if these are the steps you are trying to perform.
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.