Changing publishTask to use JIDs.