Issue Details (XML | Word | Printable)

Key: JRA-12565
Type: Support Request Support Request
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Nick Menere [Atlassian]
Reporter: Chrstian Dennig
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
JIRA

Example CloseParentIssueFunction

Created: 16/Apr/07 03:49 AM   Updated: 20/Apr/07 12:08 AM
Component/s: JIRA Development Kit
Affects Version/s: 3.8.1
Fix Version/s: 3.8.1

Time Tracking:
Not Specified

Environment: Standalone, MySQL 5.0.37, JDK 1.5.11, Windows Server 2003 german

Participants: Chrstian Dennig and Nick Menere [Atlassian]
Since last comment: 1 year, 24 weeks, 4 days ago
Company: itml.de (Find related issues)
Resolution Date: 20/Apr/07 12:08 AM
Labels:


 Description  « Hide
Hello JIRA team,

I was just going through the examples of JIRA development and got stuck on the CloseParentIssue workflow function. I compiled the example and deployed it to our test server. The function itself works fine and closes the parent issue after executing (detail view of the issue is updated). When I had a look at the transitions of the issue, I saw that the transition is not available in the history list (transitions) of the issue and in the navigator, it still shows the status the issue had before executing the post function!!

After having a look at the sourcecode I recognized that the variable 'store' (type WorkflowStore) is never used! Maybe the example is not complete at all?!?

BTW, after re-indexing the database (Administration -> Indexing), the navigator shows the correct status!

Thanks in advance!

Regards,
Christian



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Nick Menere [Atlassian] added a comment - 18/Apr/07 02:05 AM
Christian,

The plugin was broken and the code was quite old.

I have changed it and it should now all work.

Please download he latest version and try again. Sorry for the run around.

Cheers,
Nick


Chrstian Dennig added a comment - 18/Apr/07 06:15 AM
Hi Nick,

I'm afraight it does not work...the parent issue is not closed after executing a workflow that uses the post function. I have checked that the parent issue is in a status where the transition with ID 2 is available...

Cheers,
Christian


Nick Menere [Atlassian] added a comment - 19/Apr/07 12:32 AM
Christian, I tested this and it worked for me.

Do you have any field configured for the close transition or perhaps you do not have permission to close the parent issue.

Are there any errors in the logs?

Cheers,
Nick


Chrstian Dennig added a comment - 19/Apr/07 07:06 AM
Hi Nick,

sorry for that. It does work! I was just confused about the action ids! BTW is it correct that the transition "resolved -> closed" does not use a standard action(e.g. ID 2)?

Cheers,
Christian


Nick Menere [Atlassian] added a comment - 19/Apr/07 07:11 PM
You are correct.

This actually is a slightly different transition.

The best code, would retrieve all transitions and check for the transition the moves the issue into a closed state.
I wont get a chance to do that anytime soon, but I'll see what I can do.

Cheers,
Nick