Forums

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

How to get the current issue after the issue is create?

Meena Sabnivisu
April 9, 2018

Hi, I am using groovy script in post function to update the value of custom field after the issue creation transition. But I don't know how to get the created issue.

I know how to get the issue by its ID but I have to create script for every Issue created and I dont know how to do that.

 

2 answers

0 votes
Gábor Csonka
September 17, 2013

I wrote a wrong URL, what you have wrote, it's the same I am using. How I am able to do that in a status I have 2 watchers than in a post-function I am adding 2 additional watchers, so finally I have all the 4 in the flow?

Or in case is there any other options, I would like to use it:

An external development company is working for us and all the development tasks, issues, bugs which will be assigned to them, should have been e-mailed to the assignee and also to 3 fix other users.

0 votes
Matheus Fernandes
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 17, 2013

Try using https://marketplace.atlassian.com/plugins/com.burningcode.jira.issue.customfields.impl.jira-watcher-field. Alternatively, you may use this plugin and create a new custom field. Then, add a post-function to add the value of the new custom field to the list managed by this plugin. :)

Gábor Csonka
September 17, 2013

I wrote a worng URL, what you have wrote, it's the same I am using. How I am able to do that in a status I have 2 watchers than in a post-function I am adding 2 additional watchers, so finally I have all the 4 in the flow?

Or in case is there any other options, I would like to use it:

An external development company is working for us and all the development tasks, issues, bugs which will be assigned to them, should have been e-mailed to the assignee and also to 3 fix other users.

Suggest an answer

Log in or Sign up to answer