Hi,
I have 3 different projects -
- Development project
- Configuration project
- Client project
Ordinarily a ticket on the client project will also have a linked ticket on one of the other 2 projects.
For example - the client requires some development work, so a development ticket is created to track that work.
Is it possible, that when the development ticket is "Done", then this either -
a) leaves a comment on the linked project ticket, confirming the development is done, or
b) changes the status of the linked project ticket - for ease of seeing the development work is done.
Is this doable? and what is the best approach for this?
Thanks,
Chris
Hello @Pooja
You can use logic in post-funciton of create transition to fetch the issue Key and add a random number logic and create a new number for the custom field.
There are plenty of examples of generating random numbers available in java/groovy.
Yes, you can do this, but you are going to run into two problems:
1. It is possible for two issues to get the same number if they are created at a similar times
2. It's going to be useless. There are no advantages to sticking yet another identifier on a Jira issue when the issue key has more use and is what your users will use.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for the suggestion.
I am okay with the problems. Can you suggest me how to create a field using script runner?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would create the field manually, adding a simple numeric field to all issues. Do not place it on any edit or create screens.
You will then need to create a post-function or listener with a script (a listener is probably easier, as you won't need to add it to every workflow like you would with a post-function).
The listener should listen for create issue events, run a search for "new field is not empty", get the highest number from that and add to it before populating the field.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. Adding a simple numeric field to all issues- could you still more elaborate on this part.
2. You will then need to create a post-function or listener with a script- In my case, I just want this feature for the single project so I thought of using post function and suggest me with the script.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm not sure how to elaborate on "add a new field" - log in as an admin, and add a field, like all the other custom fields.
I don't have time to write scripts for other people, especially not ones that don't have any use and can go wrong.
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.