Skip to main content

Jira

Struct Jira 

Source
pub struct Jira { /* private fields */ }

Implementations§

Source§

impl Jira

Source

pub fn get_properties(&self) -> GetPropertyBuilder

Returns an application property or a list of application properties.

let jira = Jira::builder().url("http://jira.example.com")
	.username("user")
	.password("password")
	.build()?;
// Single property
let prop = jira.get_properties()
	.key("jira.home").await?;
// Mutlitple properties
let props = jira.get_properties().await?;
Source§

impl Jira

Source

pub fn set_property( &self, id: impl Into<String>, value: impl Into<String>, ) -> SetPropertyBuilder

Modify an application property via PUT. The “value” field present in the PUT will override the existing value.

Source§

impl Jira

Source

pub fn get_advanced_settings(&self) -> GetAdvancedSettingsBuilder

Returns the properties that are displayed on the “General Configuration > Advanced Settings” page.

Source§

impl Jira

Source

pub fn get_roles(&self) -> GetRolesBuilder

Returns all ApplicationRoles in the system.

Source§

impl Jira

Source

pub fn get_role(&self, key: impl Into<String>) -> GetRoleBuilder

Returns the ApplicationRole with the given key if it exists. Returns a 404 if the ApplicationRole is not found.

Source§

impl Jira

Source

pub fn update_roles( &self, key: impl Into<String>, ) -> UpdateApplicationRolesBuilder

Updates the ApplicationRoles with the passed data if the version hash is the same as the server. Only the groups and default groups setting of the role may be updated. It is acceptable to pass only the roles that are updated as roles that are present in the server but not in data to update with, will not be deleted.

Note: This currently does the same as Jira::update_role since this accepts 1 role

Source§

impl Jira

Source

pub fn update_role( &self, key: impl Into<String>, ) -> UpdateApplicationRoleBuilder

Updates the ApplicationRole with the passed data. Only the groups and default groups setting of the role may be updated.

NOT IMPLEMENTED YET Optional: if versionHash is passed through the If-Match header, the request will be rejected if not the same as the server.

Source§

impl Jira

Source

pub fn get_attachment(&self, id: u32) -> GetAttachmentBuilder

Returns the meta-data for an attachment, including the URI of the actual attached file.

Source§

impl Jira

Source

pub fn remove_attachment(&self, id: u32) -> RemoveAttachmentBuilder

Remove an attachment from an issue.

Source§

impl Jira

Source

pub fn get_attachment_meta(&self) -> GetAttachmentMetaBuilder

Returns the meta information for attachments, specifically if they are enabled and the maximum upload size allowed.

Source§

impl Jira

Source

pub fn get_all_system_avatars( &self, avatar_type: impl Into<String>, ) -> GetAllSystemAvatarsBuilder

Returns all system avatars of the given type

Source§

impl Jira

Source

pub fn store_temporary_avatar( &self, avatar_type: impl Into<String>, filename: impl Into<String>, size: u64, ) -> StoreTemporaryAvatarBuilder

Creates a temporary avatar and returns cropping instructions

Source§

impl Jira

Source

pub fn create_avatar_from_temporary( &self, avatar_type: impl Into<String>, ) -> CreateAvatarFromTemporaryBuilder

Updates the cropping instructions of the temporary avatar.

Source§

impl Jira

Source

pub fn get_all_nodes(&self) -> GetAllNodesBuilder

Source§

impl Jira

Source

pub fn get_current_index( &self, node_id: impl Into<String>, ) -> GetCurrentIndexBuilder

Request current index from node (the request is processed asynchronously).

Source§

impl Jira

Source

pub fn delete_node(&self, node_id: impl Into<String>) -> DeleteNodeBuilder

Delete the node from the cluster if the state of the node is OFFLINE.

Source§

impl Jira

Source

pub fn set_node_offline( &self, node_id: impl Into<String>, ) -> SetNodeOfflineBuilder

Change the node’s state to offline if the node is reporting as active, but is not alive.

Don’t use this method as an equivalent of running ./stop-jira.sh. This method doesn’t shut down a node, but only changes its state, so that other nodes don’t communicate with it.

Source§

impl Jira

Source

pub fn approve_upgrade(&self) -> ApproveUpgradeBuilder

Source§

impl Jira

Source

pub fn cancel_upgrade(&self) -> CancelUpgradeBuilder

Source§

impl Jira

Source

pub fn acknowledge_errors(&self) -> AcknowledgeErrorsBuilder

Source§

impl Jira

Source

pub fn set_ready_to_upgrade(&self) -> SetReadyToUpgradeBuilder

Source§

impl Jira

Source

pub fn get_state(&self) -> GetStateBuilder

Source§

impl Jira

Source

pub fn create_component( &self, name: impl Into<String>, project: impl Into<String>, project_id: u64, ) -> CreateComponentBuilder

Create a component.

Source§

impl Jira

Source

pub fn update_component(&self, id: u64) -> UpdateComponentBuilder

Modify a component. Any fields present in the request will override existing values. As a convenience, if a field is not present, it is silently ignored.

Note: If lead_user_name is an empty string ("") the component lead will be removed.

Source§

impl Jira

Source

pub fn get_component(&self, id: u64) -> GetComponentBuilder

Returns a project component.

Source§

impl Jira

Source

pub fn delete_component(&self, id: u64) -> DeleteComponentBuilder

Delete a project component.

Source§

impl Jira

Returns counts of issues related to this component.

Source§

impl Jira

Source

pub fn get_custom_fields(&self) -> GetCustomFieldsBuilder

Get custom fields

Source§

impl Jira

Source

pub fn get_all_fields(&self) -> GetAllFieldsBuilder

Returns a list of all fields, both system and custom

Source§

impl Jira

Source

pub fn get_issue(&self, key: impl Into<String>) -> GetIssueBuilder

Returns a full representation of the issue for the given issue key. By default, all fields are returned.

Source

pub fn issue(&self, key: impl Into<String>) -> GetIssueBuilder

Alias for Jira::get_issue

Source§

impl Jira

Source

pub fn get_permissions(&self) -> GetPermissionsBuilder

Returns a list of permissions indicating which permissions the user has. Details of the user’s permissions can be obtained in a global, project, issue, or comment context.

Source§

impl Jira

Source

pub fn get_all_permissions(&self) -> GetAllPermissionsBuilder

Returns all permissions that are present in the Jira instance

Source§

impl Jira

Trait Implementations§

Source§

impl Clone for Jira

Source§

fn clone(&self) -> Jira

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Jira

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Jira

§

impl !RefUnwindSafe for Jira

§

impl Send for Jira

§

impl Sync for Jira

§

impl Unpin for Jira

§

impl UnsafeUnpin for Jira

§

impl !UnwindSafe for Jira

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more