src/Jira/Api.php
protected function automapFields(array $issue)
	{
		if ( isset($issue['fields']) ) {
			$x = array();

			foreach ( $issue['fields'] as $kk => $vv ) {
				if ( isset($this->fields[$kk]) ) {
					$x[$this->fields[$kk]['name']] = $vv;
				}
				else {
					$x[$kk] = $vv;
				}
			}

			$issue['fields'] = $x;
		}

		return $issue;
	}
protected function automapFields(array $issue)
	{
		if ( isset($issue['fields']) ) {
			$x = array();

			foreach ( $issue['fields'] as $kk => $vv ) {
				if ( isset($this->fields[$kk]) ) {
					$x[$this->fields[$kk]['name']] = $vv;
				}
				else {
					$x[$kk] = $vv;
				}
			}

			$issue['fields'] = $x;
		}

		return $issue;
	}
protected function automapFields ( array $ issue ) { if ( isset ( $ issue [ 'fields' ] ) ) { $ x = array ( ) ; foreach ( $ issue [ 'fields' ] as $ kk => $ vv ) { if ( isset ( $ this -> fields [ $ kk ] ) ) { $ x [ $ this -> fields [ $ kk ] [ 'name' ] ] = $ vv ; } else { $ x [ $ kk ] = $ vv ; } } $ issue [ 'fields' ] = $ x ; } return $ issue ; }
Automaps issue fields.

@param array $issue Issue.

@return array
Automaps issue fields .